--- /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"