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
e4ff3b
index b31e05d..fa361ab 100644
e4ff3b
--- a/libraries/libldap/os-ip.c
e4ff3b
+++ b/libraries/libldap/os-ip.c
e4ff3b
@@ -594,8 +594,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;