diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-09-16 08:02:10 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-09-16 08:02:10 +0000 |
commit | b437ffce4103fb116a27506fe3d21e91031b59bf (patch) | |
tree | e2c5ff6ad7098aa3d6072ed17a66fba7413f809d /main/aiccu/musl_does_not_have_res_ninit.patch | |
parent | dc93e81cd095b0506ebead1de16797a96fcbdb00 (diff) | |
download | aports-b437ffce4103fb116a27506fe3d21e91031b59bf.tar.bz2 aports-b437ffce4103fb116a27506fe3d21e91031b59bf.tar.xz |
main/aiccu: moved from testing
Diffstat (limited to 'main/aiccu/musl_does_not_have_res_ninit.patch')
-rw-r--r-- | main/aiccu/musl_does_not_have_res_ninit.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/main/aiccu/musl_does_not_have_res_ninit.patch b/main/aiccu/musl_does_not_have_res_ninit.patch new file mode 100644 index 0000000000..1934afbc50 --- /dev/null +++ b/main/aiccu/musl_does_not_have_res_ninit.patch @@ -0,0 +1,29 @@ +--- aiccu/common/resolver.c ++++ aiccu.new/common/resolver.c +@@ -26,7 +26,7 @@ + + int getrrs(const char *label, int rrtype, void gotrec(unsigned int num, int type, const char *record)) + { +-#ifdef _LINUX ++#ifdef __GLIBC__ + struct __res_state res; + #endif + unsigned char answer[8192]; +@@ -38,7 +38,7 @@ + uint16_t type = 0, class = 0; + uint32_t ttl = 0; + +-#ifdef _LINUX ++#ifdef __GLIBC__ + memset(&res, 0, sizeof(res)); + res.options = RES_DEBUG; + res_ninit(&res); +@@ -47,7 +47,7 @@ + #endif + + memset(answer, 0, sizeof(answer)); +-#ifdef _LINUX ++#ifdef __GLIBC__ + ret = res_nquery(&res, label, C_IN, rrtype, answer, sizeof(answer)); + #else + ret = res_query(label, C_IN, rrtype, answer, sizeof(answer)); |