aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/asterisk/asterisk-1.2.24/uclibc-dns.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/asterisk/asterisk-1.2.24/uclibc-dns.patch')
-rw-r--r--recipes/asterisk/asterisk-1.2.24/uclibc-dns.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/recipes/asterisk/asterisk-1.2.24/uclibc-dns.patch b/recipes/asterisk/asterisk-1.2.24/uclibc-dns.patch
new file mode 100644
index 0000000000..4ba8b6205b
--- /dev/null
+++ b/recipes/asterisk/asterisk-1.2.24/uclibc-dns.patch
@@ -0,0 +1,18 @@
+--- /orig-dns.c 2007-07-16 23:46:58.000000000 +0300
++++ /dns.c 2007-07-26 16:29:44.000000000 +0300
+@@ -237,7 +237,14 @@
+ #if defined(res_ndestroy)
+ #define HAS_RES_NDESTROY
+ #endif
+-#else
++#endif
++
++#ifdef __UCLIBC__
++#undef HAS_RES_NINIT
++#undef HAS_RES_NDESTROY
++#endif
++
++#ifndef HAS_RES_NINIT
+ AST_MUTEX_DEFINE_STATIC(res_lock);
+ #if 0
+ #warning "Warning, res_ninit is missing... Could have reentrancy issues"