From: Amos Jeffries Date: Mon, 9 Sep 2013 01:48:09 +0000 (-0600) Subject: Windows: fix IPv6 split-stack support X-Git-Tag: SQUID_3_4_0_2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=429261b2579b5d6d98512d37e81ce70ea5a2bb70;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/mswindows.h b/compat/os/mswindows.h index b1932c81da..a31c36af0d 100644 --- a/compat/os/mswindows.h +++ b/compat/os/mswindows.h @@ -71,6 +71,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