aboutsummaryrefslogtreecommitdiffstats
path: root/dns.c
diff options
context:
space:
mode:
Diffstat (limited to 'dns.c')
-rwxr-xr-xdns.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dns.c b/dns.c
index 74a3f320d..7f8615424 100755
--- a/dns.c
+++ b/dns.c
@@ -178,10 +178,12 @@ int ast_search_dns(void *context,
else
ret = 1;
}
-#ifdef __Linux__
+#if defined(__Linux__)
res_nclose(&srvstate);
#else
+#ifndef __APPLE__
res_close();
#endif
+#endif
return ret;
}