Revert "use AI_ADDRCONFIG if defined in the environment"

This reverts commit ebf0ef5cb1.

Depends on custom glibc from RedHat
This commit is contained in:
Quanah Gibson-Mount 2019-07-19 16:24:45 +00:00
parent 92b03e82e0
commit 4ccd139355

View File

@ -581,7 +581,8 @@ ldap_connect_to_host(LDAP *ld, Sockbuf *sb,
#if defined( HAVE_GETADDRINFO ) && defined( HAVE_INET_NTOP )
memset( &hints, '\0', sizeof(hints) );
#ifdef AI_ADDRCONFIG
#ifdef USE_AI_ADDRCONFIG /* FIXME: configure test needed */
/* Use AI_ADDRCONFIG only on systems where its known to be needed. */
hints.ai_flags = AI_ADDRCONFIG;
#endif
hints.ai_family = ldap_int_inet4or6;