From: Damien Miller Date: Mon, 17 Jul 2023 04:56:14 +0000 (+1000) Subject: avoid AF_LINK on platforms that don't define it X-Git-Tag: V_9_4_P1~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6fad2c3d19b74f0bd0af1ef040fc74f3a1d9ebb;p=thirdparty%2Fopenssh-portable.git avoid AF_LINK on platforms that don't define it --- diff --git a/readconf.c b/readconf.c index 5418ace8b..debb0c417 100644 --- a/readconf.c +++ b/readconf.c @@ -609,9 +609,11 @@ check_match_ifaddrs(const char *addrlist) case AF_INET6: salen = sizeof(struct sockaddr_in6); break; +#ifdef AF_LINK case AF_LINK: /* ignore */ continue; +#endif /* AF_LINK */ default: debug2_f("interface %s: unsupported address family %d", ifa->ifa_name, ifa->ifa_addr->sa_family);