summaryrefslogtreecommitdiffstats
path: root/src/resolve.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-08-08 23:45:36 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-08-08 23:45:36 +0200
commitca354d9e2e6cddb698f727b282c22c1f4a7a3cf5 (patch)
treee966ea5f6f8a1a4cc8b7296f3820ebcd5048a019 /src/resolve.c
parent16ca5451aa45e90fdefd2cc6480f7b9e31066b37 (diff)
downloadfastd-ca354d9e2e6cddb698f727b282c22c1f4a7a3cf5.tar
fastd-ca354d9e2e6cddb698f727b282c22c1f4a7a3cf5.zip
Check for AI_ADDRCONFIG
Diffstat (limited to 'src/resolve.c')
-rw-r--r--src/resolve.c5
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);