diff options
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; } |