diff options
author | Mark Spencer <markster@digium.com> | 2003-10-26 18:50:49 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-10-26 18:50:49 +0000 |
commit | 4ce283ff18585130bd8edafb6ce7ef3cc216cbab (patch) | |
tree | 7d179763d95152f24ed90027acafdc363c2afcef /dns.c | |
parent | cd5bbf0f35f2c3fa954d3cdfbf79fe207fb3a29a (diff) |
Make it build and run on MacOS X
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1673 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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; } |