Skip to content
Snippets Groups Projects
Commit fe6e3ba3 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

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

macro).  Add comment indicating configure test needed.
parent 6cde4bde
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment