From a1c670576dc905f5f12e98d2976456b60511b38b Mon Sep 17 00:00:00 2001 From: Erik Auerswald Date: Sun, 11 May 2025 19:11:14 +0200 Subject: [PATCH] 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. --- src/fping.c | 2 ++ 1 file changed, 2 insertions(+) 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)); -- 2.43.0