From: Mark Andrews Date: Thu, 6 Jun 2002 00:55:48 +0000 (+0000) Subject: Handle OS's with incomplete API's X-Git-Tag: v9.0.1^2~8324 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=38ded52dbb4328a8b563449c81070039549e073f;p=thirdparty%2Fbind9.git Handle OS's with incomplete API's --- diff --git a/lib/bind9/getaddresses.c b/lib/bind9/getaddresses.c index 10c1f7f08bd..e65cc8a2f8d 100644 --- a/lib/bind9/getaddresses.c +++ b/lib/bind9/getaddresses.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: getaddresses.c,v 1.10 2002/06/06 00:27:37 marka Exp $ */ +/* $Id: getaddresses.c,v 1.11 2002/06/06 00:55:48 marka Exp $ */ #include #include @@ -89,7 +89,9 @@ bind9_getaddresses(const char *hostname, in_port_t port, hints.ai_family = PF_INET6; else { hints.ai_family = PF_UNSPEC; +#ifdef AI_ADDRCONFIG hints.ai_flags = AI_ADDRCONFIG; +#endif } hints.ai_socktype = SOCK_STREAM; result = getaddrinfo(hostname, NULL, &hints, &ai);