1 res_ninit is available in glibc but not in uclibc or musl.
3 Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
5 --- aiccu/common/resolver.c
6 +++ aiccu/common/resolver.c
9 int getrrs(const char *label, int rrtype, void gotrec(unsigned int num, int type, const char *record))
12 +#if defined(__GLIBC__) && !defined(__UCLIBC__)
13 struct __res_state res;
15 unsigned char answer[8192];
16 @@ -38,7 +38,7 @@ int getrrs(const char *label, int rrtype
17 uint16_t type = 0, class = 0;
21 +#if defined(__GLIBC__) && !defined(__UCLIBC__)
22 memset(&res, 0, sizeof(res));
23 res.options = RES_DEBUG;
25 @@ -47,7 +47,7 @@ int getrrs(const char *label, int rrtype
28 memset(answer, 0, sizeof(answer));
30 +#if defined(__GLIBC__) && !defined(__UCLIBC__)
31 ret = res_nquery(&res, label, C_IN, rrtype, answer, sizeof(answer));
33 ret = res_query(label, C_IN, rrtype, answer, sizeof(answer));