packages/net/asterisk/patches/002-dns.patch
nico 7ad5b78d24 update asterisk 1.2.x to 1.2.24, cleanup
git-svn-id: svn://svn.openwrt.org/openwrt/packages@8739 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-11 06:37:56 +00:00

19 lines
477 B
Diff

diff -Nru asterisk-1.2.24.org/dns.c asterisk-1.2.24/dns.c
--- asterisk-1.2.24.org/dns.c 2007-07-16 22:46:58.000000000 +0200
+++ asterisk-1.2.24/dns.c 2007-09-04 18:53:32.000000000 +0200
@@ -237,7 +237,13 @@
#if defined(res_ndestroy)
#define HAS_RES_NDESTROY
#endif
-#else
+#endif
+
+#ifdef __UCLIBC__
+#undef HAS_RES_NINIT
+#endif
+
+#ifndef HAS_RES_NINIT
AST_MUTEX_DEFINE_STATIC(res_lock);
#if 0
#warning "Warning, res_ninit is missing... Could have reentrancy issues"