From ad7a6f5518acee377ddcb42d727e06b483c02f81 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 5 Jul 2015 16:04:11 +0200 Subject: [PATCH] Don't try to call res_init() if ./configure told us it doesn't exist. --- src/net_setup.c | 2 +- src/netutl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net_setup.c b/src/net_setup.c index 5a6eb72..863616b 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 8d4d26c..275c64f 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 -- 2.25.1