]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2421: OpenBSD also hide v6only socket option we need for comm layer
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 19 Sep 2008 15:00:40 +0000 (03:00 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 19 Sep 2008 15:00:40 +0000 (03:00 +1200)
include/IPAddress.h

index 0b7b79072402651fc4b536fc16cd2d069e60629f..ce88e333214e15f9e0d36bafefa3053685c2ba35 100644 (file)
 #define s6_addr32 __u6_addr.__u6_addr32
 #endif
 
+/* OpenBSD also hide v6only socket option we need for comm layer. :-( */
+#if !defined(IPV6_V6ONLY) && defined(_SQUID_OPENBSD_)
+#define IPV6_V6ONLY            27 // from OpenBSD 4.3 headers. (NP: does not match non-BSD OS values)
+#endif
+
+
 /// Length of buffer that needs to be allocated to old a null-terminated IP-string
 // Yuck. But there are still structures that need it to be an 'integer constant'.
 #define MAX_IPSTRLEN  75