From: Guus Sliepen Date: Sun, 5 Jul 2015 14:04:11 +0000 (+0200) Subject: Don't try to call res_init() if ./configure told us it doesn't exist. X-Git-Tag: release-1.0.26~1 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=ad7a6f5518acee377ddcb42d727e06b483c02f81;p=tinc Don't try to call res_init() if ./configure told us it doesn't exist. --- diff --git a/src/net_setup.c b/src/net_setup.c index 5a6eb72a..863616b7 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -813,7 +813,7 @@ static bool setup_myself(void) { hint.ai_protocol = IPPROTO_TCP; hint.ai_flags = AI_PASSIVE; -#ifdef HAVE_DECL_RES_INIT +#if HAVE_DECL_RES_INIT // ensure glibc reloads /etc/resolv.conf. res_init(); #endif diff --git a/src/netutl.c b/src/netutl.c index 8d4d26cc..275c64f7 100644 --- a/src/netutl.c +++ b/src/netutl.c @@ -39,7 +39,7 @@ struct addrinfo *str2addrinfo(const char *address, const char *service, int sock hint.ai_family = addressfamily; hint.ai_socktype = socktype; -#ifdef HAVE_DECL_RES_INIT +#if HAVE_DECL_RES_INIT // ensure glibc reloads /etc/resolv.conf. res_init(); #endif