From fe6e3ba3efaa485056f41042e62f3d15afedde64 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 27 Aug 2004 18:59:34 +0000 Subject: [PATCH] Instead of removing AI_ADDRCONFIG, place behind #ifdef (of undefined macro). Add comment indicating configure test needed. --- libraries/libldap/os-ip.c | 4 ++++ 1 file changed, 4 insertions(+) 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 ); -- 2.39.5