--------------------- PatchSet 5573 Date: 2007/09/01 01:25:15 Author: amosjeffries Branch: squid3-ipv6 Tag: (none) Log: Protect some IPv6-only code properly in IPv4-only build. Members: src/dnsserver.cc:1.7.4.19->1.7.4.20 Index: squid3/src/dnsserver.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/dnsserver.cc,v retrieving revision 1.7.4.19 retrieving revision 1.7.4.20 diff -u -r1.7.4.19 -r1.7.4.20 --- squid3/src/dnsserver.cc 29 Aug 2007 11:23:17 -0000 1.7.4.19 +++ squid3/src/dnsserver.cc 1 Sep 2007 01:25:15 -0000 1.7.4.20 @@ -1,6 +1,6 @@ /* - * $Id: dnsserver.cc,v 1.7.4.19 2007/08/29 11:23:17 amosjeffries Exp $ + * $Id: dnsserver.cc,v 1.7.4.20 2007/09/01 01:25:15 amosjeffries Exp $ * * DEBUG: section 0 DNS Resolver * AUTHOR: Harvest Derived @@ -396,7 +396,7 @@ ipa.GetInAddr(_SQUID_RES_NSADDR_LIST[_SQUID_RES_NSADDR_COUNT++].sin_addr); } else if( ipa.IsIPv6() ) { -#if defined(_SQUID_RES_NSADDR6_LIST) +#if USE_IPV6 && defined(_SQUID_RES_NSADDR6_LIST) /* because things NEVER seem to resolve in tests without _res.nscount being a total. */ if (_SQUID_RES_NSADDR_COUNT == MAXNS) {