mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 08:39:37 -05:00
Instead of removing AI_ADDRCONFIG, place behind #ifdef (of undefined
macro). Add comment indicating configure test needed.
This commit is contained in:
parent
6cde4bdeb3
commit
fe6e3ba3ef
1 changed files with 4 additions and 0 deletions
|
|
@ -393,6 +393,10 @@ ldap_connect_to_host(LDAP *ld, Sockbuf *sb,
|
|||
|
||||
#if defined( HAVE_GETADDRINFO ) && defined( HAVE_INET_NTOP )
|
||||
memset( &hints, '\0', sizeof(hints) );
|
||||
#ifdef USE_AI_ATTRCONFIG /* FIXME: configure test needed */
|
||||
/* Use AI_ATTRCONFIG only on systems where its known to be needed. */
|
||||
hints.ai_flags = AI_ATTRCONFIG;
|
||||
#endif
|
||||
hints.ai_family = ldap_int_inet4or6;
|
||||
hints.ai_socktype = socktype;
|
||||
snprintf(serv, sizeof serv, "%d", port );
|
||||
|
|
|
|||
Loading…
Reference in a new issue