summaryrefslogtreecommitdiff
path: root/packages/asterisk/asterisk-1.2.28/uclibc-dns.patch
diff options
context:
space:
mode:
authorStelios Koroneos <skoroneos@digital-opsis.com>2008-05-01 05:21:16 +0000
committerStelios Koroneos <skoroneos@digital-opsis.com>2008-05-01 05:21:16 +0000
commita45db7f9e7f94249a55ba19570d9cdc60185b4a8 (patch)
treec6bb57e746d51c1828b418aed6cf06d2e0911bc2 /packages/asterisk/asterisk-1.2.28/uclibc-dns.patch
parenta9124b32637a3a1143b7fcc438bfd0ed7e136b28 (diff)
packages/asterisk/asterisk_1.2.28.bb : Add asterisk version 1.2.28 that has some security
fixes
Diffstat (limited to 'packages/asterisk/asterisk-1.2.28/uclibc-dns.patch')
-rw-r--r--packages/asterisk/asterisk-1.2.28/uclibc-dns.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/packages/asterisk/asterisk-1.2.28/uclibc-dns.patch b/packages/asterisk/asterisk-1.2.28/uclibc-dns.patch
new file mode 100644
index 0000000000..4ba8b6205b
--- /dev/null
+++ b/packages/asterisk/asterisk-1.2.28/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"