Blame SOURCES/openldap-ai-addrconfig.patch

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