From: Viktor Szakats Date: Fri, 21 Oct 2022 19:06:25 +0000 (+0000) Subject: noproxy: fix builds without AF_INET6 X-Git-Tag: curl-7_86_0~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36474f1050c7f4117e3c8de6cc9217cfebfc717d;p=thirdparty%2Fcurl.git noproxy: fix builds without AF_INET6 Regression from 1e9a538e05c0107c54ef81d9de7cd0b27cd13309 Reviewed-by: Daniel Stenberg Closes #9778 --- diff --git a/lib/noproxy.c b/lib/noproxy.c index 701a09e04f..0b9355a663 100644 --- a/lib/noproxy.c +++ b/lib/noproxy.c @@ -70,6 +70,7 @@ UNITTEST bool Curl_cidr6_match(const char *ipv6, const char *network, unsigned int bits) { +#ifdef ENABLE_IPV6 int bytes; int rest; unsigned char address[16]; @@ -92,6 +93,9 @@ UNITTEST bool Curl_cidr6_match(const char *ipv6, return FALSE; return TRUE; +#else + return FALSE; +#endif } enum nametype {