diff options
Diffstat (limited to 'src/resolve.c')
-rw-r--r-- | src/resolve.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/resolve.c b/src/resolve.c index fea0cff..541006d 100644 --- a/src/resolve.c +++ b/src/resolve.c @@ -53,7 +53,10 @@ static void* resolve_peer(void *varg) { .ai_family = arg->constraints.sa.sa_family, .ai_socktype = SOCK_DGRAM, .ai_protocol = IPPROTO_UDP, - .ai_flags = AI_NUMERICSERV | AI_ADDRCONFIG, + .ai_flags = AI_NUMERICSERV +#ifdef HAVE_AI_ADDRCONFIG + | AI_ADDRCONFIG +#endif }; gai_ret = getaddrinfo(arg->hostname, portstr, &hints, &res); |