aboutsummaryrefslogtreecommitdiffstats
path: root/dns.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-10-26 18:50:49 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-10-26 18:50:49 +0000
commitf9db8abd4d1bfa16f4135638c600ba0eaadec083 (patch)
tree7d179763d95152f24ed90027acafdc363c2afcef /dns.c
parent6b2aaaa721016826b533a71fb162df76db99fecc (diff)
Make it build and run on MacOS X
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1673 f38db490-d61c-443f-a65b-d21fe96a405b
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;
}