Forgot that patch
[openwrt/svn-archive/archive.git] / ipv6 / aiccu / patches / 300-resolver-uclibc.patch
1 --- aiccu/common/resolver.c.orig 2007-09-02 23:10:58.000000000 +0200
2 +++ aiccu/common/resolver.c 2007-09-02 23:11:01.000000000 +0200
3 @@ -26,7 +26,7 @@
4
5 int getrrs(const char *label, int rrtype, void gotrec(unsigned int num, int type, const char *record))
6 {
7 -#ifdef _LINUX
8 +#if defined(_LINUX) && !defined(__UCLIBC__)
9 struct __res_state res;
10 #endif
11 unsigned char answer[8192];
12 @@ -38,7 +38,7 @@
13 uint16_t type = 0, class = 0;
14 uint32_t ttl = 0;
15
16 -#ifdef _LINUX
17 +#if defined(_LINUX) && !defined(__UCLIBC__)
18 memset(&res, 0, sizeof(res));
19 res.options = RES_DEBUG;
20 res_ninit(&res);
21 @@ -47,7 +47,7 @@
22 #endif
23
24 memset(answer, 0, sizeof(answer));
25 -#ifdef _LINUX
26 +#if defined(_LINUX) && !defined(__UCLIBC__)
27 ret = res_nquery(&res, label, C_IN, rrtype, answer, sizeof(answer));
28 #else
29 ret = res_query(label, C_IN, rrtype, answer, sizeof(answer));