Blame SOURCES/openldap-ai-addrconfig.patch

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