summaryrefslogtreecommitdiff
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
commitfc8835a5bb150e083a3175641bd9e29070ddd39e (patch)
tree7a145365e87ad6d309f5767b9cd0e24c106876b7
parent654e94e1c976d675ac464e7edc1c1891a4a6b780 (diff)
* ext/socket/{getaddrinfo,getnameinfo}.c: need to include ws2tcpip.h
on Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--ext/socket/getaddrinfo.c1
-rw-r--r--ext/socket/getnameinfo.c1
3 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 1c245b7..1553a07 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Jan 13 12:10:42 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/{getaddrinfo,getnameinfo}.c: need to include ws2tcpip.h
+ on Windows.
+
Tue Jan 13 09:49:49 2009 Martin Duerst <duerst@it.aoyama.ac.jp>
* ext/socket/socket.c: removed warning about unused variable 'rai'.
diff --git a/ext/socket/getaddrinfo.c b/ext/socket/getaddrinfo.c
index 837a506..de16b9f 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 a77faf9..689b91c 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