diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-08-08 23:45:36 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-08-08 23:45:36 +0200 |
commit | ca354d9e2e6cddb698f727b282c22c1f4a7a3cf5 (patch) | |
tree | e966ea5f6f8a1a4cc8b7296f3820ebcd5048a019 /src | |
parent | 16ca5451aa45e90fdefd2cc6480f7b9e31066b37 (diff) | |
download | fastd-ca354d9e2e6cddb698f727b282c22c1f4a7a3cf5.tar fastd-ca354d9e2e6cddb698f727b282c22c1f4a7a3cf5.zip |
Check for AI_ADDRCONFIG
Diffstat (limited to 'src')
-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); |