]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Handle OS's with incomplete API's
authorMark Andrews <marka@isc.org>
Thu, 6 Jun 2002 00:55:48 +0000 (00:55 +0000)
committerMark Andrews <marka@isc.org>
Thu, 6 Jun 2002 00:55:48 +0000 (00:55 +0000)
lib/bind9/getaddresses.c

index 10c1f7f08bd9b6fbb4e72b8eab84fb828c6dcab3..e65cc8a2f8da156c93627ce3fd2cb55067d04976 100644 (file)
@@ -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 <config.h>
 #include <string.h>
@@ -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);