$FreeWRT$ --- asterisk-1.2.22.orig/dns.c 2007-07-16 22:46:58.000000000 +0200 +++ asterisk-1.2.22/dns.c 2007-07-19 01:09:18.000000000 +0200 @@ -234,10 +234,16 @@ static int dns_parse_answer(void *contex #if defined(res_ninit) #define HAS_RES_NINIT +#endif + +#ifdef __UCLIBC__ +#undef HAS_RES_NINIT +#endif + #if defined(res_ndestroy) #define HAS_RES_NDESTROY #endif -#else +#ifndef HAS_RES_NINIT AST_MUTEX_DEFINE_STATIC(res_lock); #if 0 #warning "Warning, res_ninit is missing... Could have reentrancy issues"