From: Amos Jeffries Date: Thu, 11 Dec 2008 00:09:16 +0000 (+1300) Subject: Author: Johnathan Conley X-Git-Tag: SQUID_3_2_0_1~1299 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3c02ae06b9618bdf8cdf4d73d8262f3a793c3517;p=thirdparty%2Fsquid.git Author: Johnathan Conley Bug 2547: ipv6 compile error in OSX --- diff --git a/include/IPAddress.h b/include/IPAddress.h index 9b0525142d..91c167afb1 100644 --- a/include/IPAddress.h +++ b/include/IPAddress.h @@ -70,8 +70,9 @@ * kernel macros commented as being 'non-standard'. * We need to use them, much nicer than the OS-provided __u*_*[] * UPDATE: OpenBSD 4.3 has the same. + * UPDATE: MacOSX has the same. */ -#if USE_IPV6 && ( defined(_SQUID_FREEBSD_) || defined(_SQUID_OPENBSD_) ) +#if USE_IPV6 && ( defined(_SQUID_FREEBSD_) || defined(_SQUID_OPENBSD_) || defined(_SQUID_APPLE_)) //#define s6_addr8 __u6_addr.__u6_addr8 //#define s6_addr16 __u6_addr.__u6_addr16 #define s6_addr32 __u6_addr.__u6_addr32