Instead of removing AI_ADDRCONFIG, place behind #ifdef (of undefined

macro).  Add comment indicating configure test needed.
This commit is contained in:
Kurt Zeilenga 2004-08-27 18:59:34 +00:00
parent 6cde4bdeb3
commit fe6e3ba3ef

View file

@ -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 );