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

  This is an iCelero project

compat/os/mswin.h

index c23c4d9e3d5f67819fd0df6beea85bb58c4478eb..d61e3f2b5b00e9aca98fee10aeb4e540d3a15a1a 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