Skip to content
Snippets Groups Projects
Commit bdb43220 authored by deuce's avatar deuce
Browse files

When AI_ADDRCONFIG isn't defined, don't use it.

parent 1fa75081
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,9 @@ BOOL xpms_add(struct xpms_set *xpms_set, int domain, int type,
hints.ai_socktype=type;
hints.ai_protocol=protocol;
hints.ai_flags|=AI_NUMERICSERV;
#ifdef AI_ADDRCONFIG
hints.ai_flags|=AI_ADDRCONFIG;
#endif
sprintf(port_str, "%hu", port);
if((ret=getaddrinfo(addr, port_str, &hints, &res))!=0) {
if(xpms_set->lprintf)
......
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