root/trunk/freewrt/package/asterisk-12/patches/patch-dns_c

Revision 3334, 0.7 kB (checked in by tg, 5 years ago)

Ohne Worte…

Line 
1 $FreeWRT$
2
3         rejected upstream, cf. http://bugs.digium.com/view.php?id=10251
4         they're clueless, because uClibc definitively does NOT have
5         __res_ninit() and friends, yet they say it has
6
7 --- asterisk-1.2.22.orig/dns.c  2007-07-16 22:46:58.000000000 +0200
8 +++ asterisk-1.2.22/dns.c       2007-07-19 01:09:18.000000000 +0200
9 @@ -234,10 +234,16 @@ static int dns_parse_answer(void *contex
10  
11  #if defined(res_ninit)
12  #define HAS_RES_NINIT
13 +#endif
14 +
15 +#ifdef __UCLIBC__
16 +#undef HAS_RES_NINIT
17 +#endif
18 +
19  #if defined(res_ndestroy)
20  #define HAS_RES_NDESTROY
21  #endif
22 -#else
23 +#ifndef HAS_RES_NINIT
24  AST_MUTEX_DEFINE_STATIC(res_lock);
25  #if 0
26  #warning "Warning, res_ninit is missing...  Could have reentrancy issues"
Note: See TracBrowser for help on using the browser.