mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-18 18:18:06 -05:00
use AI_ADDRCONFIG if defined in the environment
This commit is contained in:
parent
bfe2de8f08
commit
33945aeb96
1 changed files with 1 additions and 2 deletions
|
|
@ -594,8 +594,7 @@ ldap_connect_to_host(LDAP *ld, Sockbuf *sb,
|
|||
|
||||
#if defined( HAVE_GETADDRINFO ) && defined( HAVE_INET_NTOP )
|
||||
memset( &hints, '\0', sizeof(hints) );
|
||||
#ifdef USE_AI_ADDRCONFIG /* FIXME: configure test needed */
|
||||
/* Use AI_ADDRCONFIG only on systems where its known to be needed. */
|
||||
#ifdef AI_ADDRCONFIG
|
||||
hints.ai_flags = AI_ADDRCONFIG;
|
||||
#endif
|
||||
hints.ai_family = ldap_int_inet4or6;
|
||||
|
|
|
|||
Loading…
Reference in a new issue