]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Windows: fix IPv6 split-stack support
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 8 Sep 2013 03:07:29 +0000 (21:07 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 8 Sep 2013 03:07:29 +0000 (21:07 -0600)
Some builds of MinGW do not define IPV6_V6ONLY socket option.

  This is an iCelero project

compat/os/mswindows.h

index b1932c81da40445bcb76b958f04095e6279d5364..a31c36af0d2467150cad0002732eb1a6a0a6651b 100644 (file)
 #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