update asterisk 1.2.x to 1.2.24, cleanup
[openwrt/svn-archive/archive.git] / net / asterisk / patches / 002-dns.patch
1 diff -Nru asterisk-1.2.24.org/dns.c asterisk-1.2.24/dns.c
2 --- asterisk-1.2.24.org/dns.c 2007-07-16 22:46:58.000000000 +0200
3 +++ asterisk-1.2.24/dns.c 2007-09-04 18:53:32.000000000 +0200
4 @@ -237,7 +237,13 @@
5 #if defined(res_ndestroy)
6 #define HAS_RES_NDESTROY
7 #endif
8 -#else
9 +#endif
10 +
11 +#ifdef __UCLIBC__
12 +#undef HAS_RES_NINIT
13 +#endif
14 +
15 +#ifndef HAS_RES_NINIT
16 AST_MUTEX_DEFINE_STATIC(res_lock);
17 #if 0
18 #warning "Warning, res_ninit is missing... Could have reentrancy issues"