aboutsummaryrefslogtreecommitdiff
path: root/syshead.h
diff options
context:
space:
mode:
authorJuanJo Ciarlante <jjo@google.com>2010-02-21 18:46:59 +0100
committerGert Doering <gert@greenie.muc.de>2011-04-24 17:22:39 +0200
commit49a945eafea2c64dbaa5cb2ecdfd4ca9a82aa26e (patch)
treeeaaa859bbf4ce71ebe7186d0ccba107353b86605 /syshead.h
parentadd some TODOs to TODO.IPv6 (diff)
downloadopenvpn-49a945eafea2c64dbaa5cb2ecdfd4ca9a82aa26e.tar.xz
* make ipv6_payload compile under windowze
- create inet_ntop() and inet_pton() wrap-implementations using WSAAddressToString() and WSAStringToAddress() functions - add relevant win32-only headers to syshead.h NOTE: syshead.h changes are already included in ipv6_transport
Diffstat (limited to 'syshead.h')
-rw-r--r--syshead.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/syshead.h b/syshead.h
index 30ff556..d589531 100644
--- a/syshead.h
+++ b/syshead.h
@@ -28,6 +28,10 @@
/*
* Only include if not during configure
*/
+#ifdef WIN32
+/* USE_PF_INET6: win32 ipv6 exists only after 0x0501 (XP) */
+#define WINVER 0x0501
+#endif
#ifndef PACKAGE_NAME
#include "config.h"
#endif
@@ -339,6 +343,9 @@
#ifdef WIN32
#include <iphlpapi.h>
#include <wininet.h>
+/* The following two headers are needed of USE_PF_INET6 */
+#include <winsock2.h>
+#include <ws2tcpip.h>
#endif
#ifdef HAVE_SYS_MMAN_H