diff options
author | Damien Miller <djm@mindrot.org> | 2023-07-17 14:56:14 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2023-07-17 14:56:14 +1000 |
commit | c6fad2c3d19b74f0bd0af1ef040fc74f3a1d9ebb (patch) | |
tree | 2da27e6a8097587bcf7a446abb1c9a58728bd3ce | |
parent | 919bc3d3b712c920de1ae6be5ac6561c98886d7e (diff) |
avoid AF_LINK on platforms that don't define it
-rw-r--r-- | readconf.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |