| 1 |
$FreeWRT$ |
$FreeWRT$ |
| 2 |
--- asterisk-1.2.14.orig/dns.c 2005-11-29 19:24:39.000000000 +0100 |
|
| 3 |
+++ asterisk-1.2.14/dns.c 2007-01-28 15:36:08.000000000 +0100 |
rejected upstream, cf. http://bugs.digium.com/view.php?id=10251 |
| 4 |
@@ -175,7 +175,13 @@ static int dns_parse_answer(void *contex |
they're clueless, because uClibc definitively does NOT have |
| 5 |
|
__res_ninit() and friends, yet they say it has |
| 6 |
|
|
| 7 |
|
--- asterisk-1.2.22.orig/dns.c 2007-07-16 22:46:58.000000000 +0200 |
| 8 |
|
+++ asterisk-1.2.22/dns.c 2007-07-19 01:09:18.000000000 +0200 |
| 9 |
|
@@ -234,10 +234,16 @@ static int dns_parse_answer(void *contex |
| 10 |
|
|
| 11 |
#if defined(res_ninit) |
#if defined(res_ninit) |
| 12 |
#define HAS_RES_NINIT |
#define HAS_RES_NINIT |
|
-#else |
|
| 13 |
+#endif |
+#endif |
| 14 |
+ |
+ |
| 15 |
+#ifdef __UCLIBC__ |
+#ifdef __UCLIBC__ |
| 16 |
+#undef HAS_RES_NINIT |
+#undef HAS_RES_NINIT |
| 17 |
+#endif |
+#endif |
| 18 |
+ |
+ |
| 19 |
|
#if defined(res_ndestroy) |
| 20 |
|
#define HAS_RES_NDESTROY |
| 21 |
|
#endif |
| 22 |
|
-#else |
| 23 |
+#ifndef HAS_RES_NINIT |
+#ifndef HAS_RES_NINIT |
| 24 |
AST_MUTEX_DEFINE_STATIC(res_lock); |
AST_MUTEX_DEFINE_STATIC(res_lock); |
| 25 |
#if 0 |
#if 0 |