diff options
author | rmanfredi <rmanfredi@2592e710-e01b-42a5-8df0-11608a6cc53d> | 2010-12-12 10:14:03 +0000 |
---|---|---|
committer | rmanfredi <rmanfredi@2592e710-e01b-42a5-8df0-11608a6cc53d> | 2010-12-12 10:14:03 +0000 |
commit | 80ed788015913282d2c2880d6dcbaa542bee450c (patch) | |
tree | 54e41bfeeb602060fb9fda8968e1e748a815fff1 /mcon/U/d_msg_flags.U | |
parent | 3be43d14e47dbf317c5349b4452f35bbeff791cb (diff) |
On Windows, define WINVER to 0x0501 before including <Ws2tcpip.h>.
This makes getaddrinfo() and IPv6 visible.
git-svn-id: svn://svn.code.sf.net/p/dist/code/trunk/dist@59 2592e710-e01b-42a5-8df0-11608a6cc53d
Diffstat (limited to 'mcon/U/d_msg_flags.U')
-rw-r--r-- | mcon/U/d_msg_flags.U | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mcon/U/d_msg_flags.U b/mcon/U/d_msg_flags.U index 77d8d63..6eb4752 100644 --- a/mcon/U/d_msg_flags.U +++ b/mcon/U/d_msg_flags.U @@ -9,7 +9,7 @@ ?RCS: of the source tree for dist 4.0. ?RCS: ?MAKE:d_msghdr_msg_flags: Trylink cat i_systypes i_sysselct \ - i_winsock2 i_mswsock + i_winsock2 i_mswsock d_windows ?MAKE: -pick add $@ %< ?S:d_msghdr_msg_flags: ?S: This variable conditionally defines the HAS_MSGHDR_MSG_FLAGS symbol, @@ -29,12 +29,16 @@ $cat >try.c <<EOC #$i_sysselct I_SYS_SELECT #$i_winsock2 I_WINSOCK2 #$i_mswsock I_MSWSOCK +#$d_windows WINDOWS_SYSTEM #ifdef I_SYS_TYPES #include <sys/types.h> #endif #ifdef I_SYS_SOCKET #include <sys/socket.h> #endif +#ifdef WINDOWS_SYSTEM +#define WINVER 0x0501 +#endif #ifdef I_WINSOCK2 #include <Winsock2.h> #endif |