From: Kurt Zeilenga Date: Fri, 27 Aug 2004 18:59:34 +0000 (+0000) Subject: Instead of removing AI_ADDRCONFIG, place behind #ifdef (of undefined X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~621 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fe6e3ba3efaa485056f41042e62f3d15afedde64;p=openldap Instead of removing AI_ADDRCONFIG, place behind #ifdef (of undefined macro). Add comment indicating configure test needed. --- diff --git a/libraries/libldap/os-ip.c b/libraries/libldap/os-ip.c index 31b1049b92..dedb57bb3e 100644 --- a/libraries/libldap/os-ip.c +++ b/libraries/libldap/os-ip.c @@ -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 );