summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.h
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/socketmodule.h')
-rw-r--r--Modules/socketmodule.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Modules/socketmodule.h b/Modules/socketmodule.h
index d1503ba..a59e6f7 100644
--- a/Modules/socketmodule.h
+++ b/Modules/socketmodule.h
@@ -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>