diff options
author | JuanJo Ciarlante <jjo@google.com> | 2010-02-21 18:46:59 +0100 |
---|---|---|
committer | Gert Doering <gert@greenie.muc.de> | 2011-04-24 17:22:39 +0200 |
commit | 49a945eafea2c64dbaa5cb2ecdfd4ca9a82aa26e (patch) | |
tree | eaaa859bbf4ce71ebe7186d0ccba107353b86605 /syshead.h | |
parent | add some TODOs to TODO.IPv6 (diff) | |
download | openvpn-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.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |