Blame SOURCES/openldap-ai-addrconfig.patch

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