Blame SOURCES/openldap-ai-addrconfig.patch

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