diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-10-26 18:50:49 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-10-26 18:50:49 +0000 |
commit | f9db8abd4d1bfa16f4135638c600ba0eaadec083 (patch) | |
tree | 7d179763d95152f24ed90027acafdc363c2afcef /dns.c | |
parent | 6b2aaaa721016826b533a71fb162df76db99fecc (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-x | dns.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; } |