1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-11 06:22:58 +00:00

Again ported to NetBSD

This commit is contained in:
Gerhard Rieger 2024-06-21 13:59:45 +02:00
parent b5b9ee0031
commit 2ab4b232fc
6 changed files with 43 additions and 3 deletions

View file

@ -216,9 +216,11 @@ int xiogetaddrinfo(const char *node, const char *service,
if (family == PF_UNSPEC) family = PF_INET6;
#endif /* WITH_IP6 */
}
#if HAVE_GETADDRINFO
#ifdef AI_ADDRCONFIG
if (family == 0)
hints.ai_flags |= AI_ADDRCONFIG;
#if HAVE_GETADDRINFO
#endif
if (node != NULL || service != NULL) {
struct addrinfo *record;