mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
use AI_ADDRCONFIG if defined in the environment
This commit is contained in:
parent
5957cbb660
commit
ebf0ef5cb1
1 changed files with 1 additions and 2 deletions
|
|
@ -581,8 +581,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