Make it build and run on MacOS X

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1673 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2003-10-26 18:50:49 +00:00
parent cd5bbf0f35
commit 4ce283ff18
23 changed files with 273 additions and 45 deletions

4
dns.c
View File

@@ -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;
}