From 36474f1050c7f4117e3c8de6cc9217cfebfc717d Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 21 Oct 2022 19:06:25 +0000 Subject: [PATCH] noproxy: fix builds without AF_INET6 Regression from 1e9a538e05c0107c54ef81d9de7cd0b27cd13309 Reviewed-by: Daniel Stenberg Closes #9778 --- lib/noproxy.c | 4 ++++ 1 file changed, 4 insertions(+) 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 { -- 2.47.3