ruby-changes:9943
From: usa <ko1@a...>
Date: Tue, 13 Jan 2009 12:13:43 +0900 (JST)
Subject: [ruby-changes:9943] Ruby:r21484 (trunk): * ext/socket/{getaddrinfo,getnameinfo}.c: need to include ws2tcpip.h
usa 2009-01-13 12:11:17 +0900 (Tue, 13 Jan 2009) New Revision: 21484 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21484 Log: * ext/socket/{getaddrinfo,getnameinfo}.c: need to include ws2tcpip.h on Windows. Modified files: trunk/ChangeLog trunk/ext/socket/getaddrinfo.c trunk/ext/socket/getnameinfo.c Index: ChangeLog =================================================================== --- ChangeLog (revision 21483) +++ ChangeLog (revision 21484) @@ -1,3 +1,8 @@ +Tue Jan 13 12:10:42 2009 NAKAMURA Usaku <usa@r...> + + * ext/socket/{getaddrinfo,getnameinfo}.c: need to include ws2tcpip.h + on Windows. + Tue Jan 13 09:49:49 2009 Martin Duerst <duerst@i...> * ext/socket/socket.c: removed warning about unused variable 'rai'. Index: ext/socket/getaddrinfo.c =================================================================== --- ext/socket/getaddrinfo.c (revision 21483) +++ ext/socket/getaddrinfo.c (revision 21484) @@ -64,6 +64,7 @@ #include <unistd.h> #else #include <winsock2.h> +#include <ws2tcpip.h> #include <io.h> #endif #include <string.h> Index: ext/socket/getnameinfo.c =================================================================== --- ext/socket/getnameinfo.c (revision 21483) +++ ext/socket/getnameinfo.c (revision 21484) @@ -57,6 +57,7 @@ #endif #ifdef _WIN32 #include <winsock2.h> +#include <ws2tcpip.h> #define snprintf _snprintf #endif -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/