From 6f869a57feddab587f32b0bfa1908af9c3a10c9c Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 21 Jul 2015 10:51:14 +0000 Subject: ruby/win32.h: include windows.h * include/ruby/win32.h: include windows.h before winsock2.h, because mswsock.h included by the former uses SOCKET defined after it in the latter. fix a build failure with VC6. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/socket/getaddrinfo.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ext/socket/getaddrinfo.c') diff --git a/ext/socket/getaddrinfo.c b/ext/socket/getaddrinfo.c index 68f610e807..6d6d11fa8f 100644 --- a/ext/socket/getaddrinfo.c +++ b/ext/socket/getaddrinfo.c @@ -66,6 +66,9 @@ #endif #include #else +#if defined(_MSC_VER) && _MSC_VER <= 1200 +#include +#endif #include #include #include -- cgit v1.2.3