From: Amos Jeffries Date: Wed, 11 Sep 2013 01:01:32 +0000 (-0600) Subject: Windows: fix IPv6 split-stack support X-Git-Tag: SQUID_3_3_10~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1c8fc20c0d8717d19e65beb7c3835e2a02da55b4;p=thirdparty%2Fsquid.git Windows: fix IPv6 split-stack support Some builds of MinGW do not define IPV6_V6ONLY socket option. This is an iCelero project --- diff --git a/compat/os/mswin.h b/compat/os/mswin.h index c23c4d9e3d..d61e3f2b5b 100644 --- a/compat/os/mswin.h +++ b/compat/os/mswin.h @@ -51,6 +51,11 @@ #define NOMINMAX #endif +/// some builds of MinGW do not define IPV6_V6ONLY socket option +#if !defined(IPV6_V6ONLY) +#define IPV6_V6ONLY 27 +#endif + #if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS == 64 # define __USE_FILE_OFFSET64 1 #endif