|
@@ -5,7 +5,7 @@
|
5
|
5
|
int getrrs(const char *label, int rrtype, void gotrec(unsigned int num, int type, const char *record))
|
6
|
6
|
{
|
7
|
7
|
-#ifdef _LINUX
|
8
|
|
-+#if defined(_LINUX) && defined(__GLIBC__)
|
|
8
|
++#if defined(_LINUX) && defined(__GLIBC__) && !defined(__UCLIBC__)
|
9
|
9
|
struct __res_state res;
|
10
|
10
|
#endif
|
11
|
11
|
unsigned char answer[8192];
|
|
@@ -14,7 +14,7 @@
|
14
|
14
|
uint32_t ttl = 0;
|
15
|
15
|
|
16
|
16
|
-#ifdef _LINUX
|
17
|
|
-+#if defined(_LINUX) && defined(__GLIBC__)
|
|
17
|
++#if defined(_LINUX) && defined(__GLIBC__) && !defined(__UCLIBC__)
|
18
|
18
|
memset(&res, 0, sizeof(res));
|
19
|
19
|
res.options = RES_DEBUG;
|
20
|
20
|
res_ninit(&res);
|
|
@@ -23,18 +23,7 @@
|
23
|
23
|
|
24
|
24
|
memset(answer, 0, sizeof(answer));
|
25
|
25
|
-#ifdef _LINUX
|
26
|
|
-+#if defined(_LINUX) && defined(__GLIBC__)
|
|
26
|
++#if defined(_LINUX) && defined(__GLIBC__) && !defined(__UCLIBC__)
|
27
|
27
|
ret = res_nquery(&res, label, C_IN, rrtype, answer, sizeof(answer));
|
28
|
28
|
#else
|
29
|
29
|
ret = res_query(label, C_IN, rrtype, answer, sizeof(answer));
|
30
|
|
---- a/common/dn_skipname.c
|
31
|
|
-+++ b/common/dn_skipname.c
|
32
|
|
-@@ -9,7 +9,7 @@
|
33
|
|
- * return:
|
34
|
|
- * 0 on success, -1 (with errno set) on failure.
|
35
|
|
- */
|
36
|
|
--int ns_name_skip(const u_char **ptrptr, const u_char *eom)
|
37
|
|
-+static int ns_name_skip(const u_char **ptrptr, const u_char *eom)
|
38
|
|
- {
|
39
|
|
- const u_char *cp;
|
40
|
|
- u_int n;
|