Blame SOURCES/openldap-ai-addrconfig.patch

5b6c6a
use AI_ADDRCONFIG if defined in the environment
5b6c6a
5b6c6a
Author: Jan Vcelak <jvcelak@redhat.com>
5b6c6a
Upstream ITS: #7326
5b6c6a
Resolves: #835013
5b6c6a
5b6c6a
---
5b6c6a
 libraries/libldap/os-ip.c |    3 +--
5b6c6a
 1 file changed, 1 insertion(+), 2 deletions(-)
5b6c6a
5b6c6a
diff --git a/libraries/libldap/os-ip.c b/libraries/libldap/os-ip.c
5b6c6a
index c95f34f..fe531a7 100644
5b6c6a
--- a/libraries/libldap/os-ip.c
5b6c6a
+++ b/libraries/libldap/os-ip.c
5b6c6a
@@ -421,9 +421,8 @@ ldap_connect_to_host(LDAP *ld, Sockbuf *sb,
5b6c6a
 
5b6c6a
 #if defined( HAVE_GETADDRINFO ) && defined( HAVE_INET_NTOP )
5b6c6a
 	memset( &hints, '\0', sizeof(hints) );
5b6c6a
-#ifdef USE_AI_ATTRCONFIG /* FIXME: configure test needed */
5b6c6a
-	/* Use AI_ATTRCONFIG only on systems where its known to be needed. */
5b6c6a
-	hints.ai_flags = AI_ATTRCONFIG;
5b6c6a
+#ifdef AI_ADDRCONFIG
5b6c6a
+	hints.ai_flags = AI_ADDRCONFIG;
5b6c6a
 #endif
5b6c6a
 	hints.ai_family = ldap_int_inet4or6;
5b6c6a
 	hints.ai_socktype = socktype;
5b6c6a
-- 
5b6c6a
1.7.10.4
5b6c6a