diff Modules/socketmodule.h @ 22096:9e5ff6747437 legacy-trunk

Patch #520062: Support IPv6 with VC.NET.
author Martin v. Löwis <martin@v.loewis.de>
date Fri, 01 Mar 2002 08:31:07 +0000
parents e0a288db022d
children c2733e8f6612
line wrap: on
line diff
--- a/Modules/socketmodule.h	Thu Feb 28 23:46:34 2002 +0000
+++ b/Modules/socketmodule.h	Fri Mar 01 08:31:07 2002 +0000
@@ -9,8 +9,18 @@
 # endif
 
 #else /* MS_WINDOWS */
+#if _MSC_VER >= 1300
+# include <winsock2.h>
+# include <ws2tcpip.h>
+# define HAVE_ADDRINFO
+# define HAVE_SOCKADDR_STORAGE
+# define HAVE_GETADDRINFO
+# define HAVE_GETNAMEINFO
+# define ENABLE_IPV6
+#else
 # include <winsock.h>
 #endif
+#endif
 
 #ifdef HAVE_SYS_UN_H
 # include <sys/un.h>