summaryrefslogtreecommitdiffstats
path: root/otherlibs/win32unix/unixsupport.h
diff options
context:
space:
mode:
authorJonathan Protzenko <Jonathan.Protzenko@ens-lyon.org>2012-07-13 12:15:57 +0000
committerJonathan Protzenko <Jonathan.Protzenko@ens-lyon.org>2012-07-13 12:15:57 +0000
commit7bb9ab2e0cbdc2d07d12952703bba3a9de66952d (patch)
tree0cc280ab30afe6a88dc4dc091e9bfbb19285082b /otherlibs/win32unix/unixsupport.h
parent776c46fce82af1c7d8ac0ce490c42bc5106a5cf6 (diff)
PR#5676: add ipv6 support on Windows.
Patch by Jérôme Vouillon <Jerome.Vouillon@pps.jussieu.fr> git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12710 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/win32unix/unixsupport.h')
-rw-r--r--otherlibs/win32unix/unixsupport.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/otherlibs/win32unix/unixsupport.h b/otherlibs/win32unix/unixsupport.h
index a5496bf26..5a3f4505f 100644
--- a/otherlibs/win32unix/unixsupport.h
+++ b/otherlibs/win32unix/unixsupport.h
@@ -20,7 +20,11 @@
#include <direct.h>
#include <process.h>
#include <sys/types.h>
-#include <winsock.h>
+#include <winsock2.h>
+#ifdef HAS_IPV6
+#include <ws2tcpip.h>
+#include <wspiapi.h>
+#endif
struct filedescr {
union {