Blame SOURCES/openldap-ai-addrconfig.patch

adf540
use AI_ADDRCONFIG if defined in the environment
adf540
adf540
Author: Jan Vcelak <jvcelak@redhat.com>
adf540
Upstream ITS: #7326
adf540
Resolves: #835013
adf540
adf540
diff --git a/libraries/libldap/os-ip.c b/libraries/libldap/os-ip.c
adf540
index b31e05d..fa361ab 100644
adf540
--- a/libraries/libldap/os-ip.c
adf540
+++ b/libraries/libldap/os-ip.c
adf540
@@ -594,8 +594,7 @@ ldap_connect_to_host(LDAP *ld, Sockbuf *sb,
adf540
 
adf540
 #if defined( HAVE_GETADDRINFO ) && defined( HAVE_INET_NTOP )
adf540
 	memset( &hints, '\0', sizeof(hints) );
adf540
-#ifdef USE_AI_ADDRCONFIG /* FIXME: configure test needed */
adf540
-	/* Use AI_ADDRCONFIG only on systems where its known to be needed. */
adf540
+#ifdef AI_ADDRCONFIG
adf540
 	hints.ai_flags = AI_ADDRCONFIG;
adf540
 #endif
adf540
 	hints.ai_family = ldap_int_inet4or6;