summaryrefslogtreecommitdiffstats
path: root/ext/socket
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-13 03:11:17 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-13 03:11:17 +0000
commit08531040aeae4ed5cf8372da255687e3c8b4deb1 (patch)
tree7a145365e87ad6d309f5767b9cd0e24c106876b7 /ext/socket
parent6f66453f2a80a9b9dc9257b4fb24f5fbc87445bd (diff)
downloadruby-08531040aeae4ed5cf8372da255687e3c8b4deb1.tar.gz
ruby-08531040aeae4ed5cf8372da255687e3c8b4deb1.tar.xz
ruby-08531040aeae4ed5cf8372da255687e3c8b4deb1.zip
* ext/socket/{getaddrinfo,getnameinfo}.c: need to include ws2tcpip.h
on Windows. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket')
-rw-r--r--ext/socket/getaddrinfo.c1
-rw-r--r--ext/socket/getnameinfo.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/ext/socket/getaddrinfo.c b/ext/socket/getaddrinfo.c
index 837a506a7..de16b9fb1 100644
--- a/ext/socket/getaddrinfo.c
+++ b/ext/socket/getaddrinfo.c
@@ -64,6 +64,7 @@
#include <unistd.h>
#else
#include <winsock2.h>
+#include <ws2tcpip.h>
#include <io.h>
#endif
#include <string.h>
diff --git a/ext/socket/getnameinfo.c b/ext/socket/getnameinfo.c
index a77faf970..689b91c29 100644
--- a/ext/socket/getnameinfo.c
+++ b/ext/socket/getnameinfo.c
@@ -57,6 +57,7 @@
#endif
#ifdef _WIN32
#include <winsock2.h>
+#include <ws2tcpip.h>
#define snprintf _snprintf
#endif