summaryrefslogtreecommitdiff
path: root/packages/asterisk/asterisk-1.2.24/uclibc-dns.patch
blob: 4ba8b6205bc2a5407e9a1b208609c63a164d04b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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"