fixes compile for ldap module in php5
[packages.git] / net / asterisk / patches / 02-dns.patch
1 diff -Nru asterisk-1.2.14.org/dns.c asterisk-1.2.14/dns.c
2 --- asterisk-1.2.14.org/dns.c   2005-11-29 19:24:39.000000000 +0100
3 +++ asterisk-1.2.14/dns.c       2006-12-27 08:50:05.000000000 +0100
4 @@ -175,7 +175,13 @@
5  
6  #if defined(res_ninit)
7  #define HAS_RES_NINIT
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"