From bdb43220185cee1ee2e9d53b3570055de1ab8ac3 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Thu, 12 Dec 2013 04:27:15 +0000 Subject: [PATCH] When AI_ADDRCONFIG isn't defined, don't use it. --- src/xpdev/multisock.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xpdev/multisock.c b/src/xpdev/multisock.c index 68a0d26e41..fb261a6265 100644 --- a/src/xpdev/multisock.c +++ b/src/xpdev/multisock.c @@ -86,7 +86,9 @@ BOOL xpms_add(struct xpms_set *xpms_set, int domain, int type, hints.ai_socktype=type; hints.ai_protocol=protocol; hints.ai_flags|=AI_NUMERICSERV; +#ifdef AI_ADDRCONFIG hints.ai_flags|=AI_ADDRCONFIG; +#endif sprintf(port_str, "%hu", port); if((ret=getaddrinfo(addr, port_str, &hints, &res))!=0) { if(xpms_set->lprintf) -- GitLab