From: Erik Auerswald Date: Sun, 11 May 2025 17:11:14 +0000 (+0200) Subject: fix build without IPv6 support X-Git-Tag: v5.5~67 X-Git-Url: https://git.gsnw.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1c670576dc905f5f12e98d2976456b60511b38b;p=fping.git fix build without IPv6 support In commit 57d91b13f20529a23df8c29eaf612d8483e318d8, I missed one set of "#ifdev IPV6 ... #endif" guards for a piece of code only relevant for IPv6 support in the generator. This broke the build with --disable-ipv6, or without IPv6 support on the build system. --- diff --git a/src/fping.c b/src/fping.c index 9aa527a..8433d08 100644 --- a/src/fping.c +++ b/src/fping.c @@ -1526,6 +1526,7 @@ void add_range(char *start, char *end) exit(1); } +#ifdef IPV6 /* IPv6 addresses can have a scope */ if (hints_ai_family == AF_INET6) { start_scope_str = strchr(start, '%'); @@ -1537,6 +1538,7 @@ void add_range(char *start, char *end) exit(1); } } +#endif /* parse end address */ memset(&addr_hints, 0, sizeof(struct addrinfo));