Blame SOURCES/openldap-ai-addrconfig.patch

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