From: Jamey Sharp Date: Fri, 24 Nov 2006 21:24:05 +0000 (-0800) Subject: NetBSD doesn't have AI_ADDRCONFIG: use it only if it's available. X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3360d0c79e98cf6b7f30b2d84f117aea0a28595d;p=free-sw%2Fxcb%2Flibxcb NetBSD doesn't have AI_ADDRCONFIG: use it only if it's available. --- diff --git a/src/xcb_util.c b/src/xcb_util.c index bd9f2b5..eeee1dd 100644 --- a/src/xcb_util.c +++ b/src/xcb_util.c @@ -176,7 +176,10 @@ static int _xcb_open_decnet(const char *host, const unsigned short port) static int _xcb_open_tcp(char *host, const unsigned short port) { int fd = -1; - struct addrinfo hints = { AI_ADDRCONFIG + struct addrinfo hints = { 0 +#ifdef AI_ADDRCONFIG + | AI_ADDRCONFIG +#endif #ifdef AI_NUMERICSERV | AI_NUMERICSERV #endif