]> git.sur5r.net Git - openldap/commitdiff
Instead of removing AI_ADDRCONFIG, place behind #ifdef (of undefined
authorKurt Zeilenga <kurt@openldap.org>
Fri, 27 Aug 2004 18:59:34 +0000 (18:59 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 27 Aug 2004 18:59:34 +0000 (18:59 +0000)
macro).  Add comment indicating configure test needed.

libraries/libldap/os-ip.c

index 31b1049b925b53bc9db7f5800c92bd84b0c173ec..dedb57bb3e2d5c0dafd7e8c14e4b1fec267790e6 100644 (file)
@@ -393,6 +393,10 @@ ldap_connect_to_host(LDAP *ld, Sockbuf *sb,
 
 #if defined( HAVE_GETADDRINFO ) && defined( HAVE_INET_NTOP )
        memset( &hints, '\0', sizeof(hints) );
+#ifdef USE_AI_ATTRCONFIG /* FIXME: configure test needed */
+       /* Use AI_ATTRCONFIG only on systems where its known to be needed. */
+       hints.ai_flags = AI_ATTRCONFIG;
+#endif
        hints.ai_family = ldap_int_inet4or6;
        hints.ai_socktype = socktype;
        snprintf(serv, sizeof serv, "%d", port );