From ca354d9e2e6cddb698f727b282c22c1f4a7a3cf5 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 8 Aug 2013 23:45:36 +0200 Subject: Check for AI_ADDRCONFIG --- src/resolve.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3