зеркало из https://github.com/github/ruby.git
* ext/socket/extconf.rb: initialize winsock on win32 to avoid error
dialog of OS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
bd232e1578
Коммит
878a3f60b6
|
@ -1,3 +1,8 @@
|
|||
Mon Jul 14 13:36:15 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* ext/socket/extconf.rb: initialize winsock on win32 to avoid error
|
||||
dialog of OS.
|
||||
|
||||
Mon Jul 14 06:02:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/optparse.rb (OptionParser#environment): requires shellwords.
|
||||
|
|
|
@ -125,6 +125,11 @@ main()
|
|||
int passive, gaierr, inet4 = 0, inet6 = 0;
|
||||
struct addrinfo hints, *ai, *aitop;
|
||||
char straddr[INET6_ADDRSTRLEN], strport[16];
|
||||
#ifdef _WIN32
|
||||
WSADATA retdata;
|
||||
|
||||
WSAStartup(MAKEWORD(2, 0), &retdata);
|
||||
#endif
|
||||
|
||||
for (passive = 0; passive <= 1; passive++) {
|
||||
memset(&hints, 0, sizeof(hints));
|
||||
|
|
Загрузка…
Ссылка в новой задаче