Gentoo Archives: gentoo-commits

From: "Michael Weber (xmw)" <xmw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/aiccu/files: aiccu-2007.01.15-uclibc.patch
Date: Wed, 01 Aug 2012 13:32:26
Message-Id: 20120801133215.212D62004C@flycatcher.gentoo.org
1 xmw 12/08/01 13:32:15
2
3 Added: aiccu-2007.01.15-uclibc.patch
4 Log:
5 Add uclibc fix (bug 230091), add CONFIG_CHECK for TUN.
6
7 (Portage version: 2.1.11.9/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 net-misc/aiccu/files/aiccu-2007.01.15-uclibc.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/aiccu/files/aiccu-2007.01.15-uclibc.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/aiccu/files/aiccu-2007.01.15-uclibc.patch?rev=1.1&content-type=text/plain
14
15 Index: aiccu-2007.01.15-uclibc.patch
16 ===================================================================
17 --- aiccu/common/resolver.c
18 +++ aiccu/common/resolver.c
19 @@ -26,7 +26,7 @@
20
21 int getrrs(const char *label, int rrtype, void gotrec(unsigned int num, int type, const char *record))
22 {
23 -#ifdef _LINUX
24 +#if defined(_LINUX) && ! defined(__UCLIBC__)
25 struct __res_state res;
26 #endif
27 unsigned char answer[8192];
28 @@ -38,7 +38,7 @@
29 uint16_t type = 0, class = 0;
30 uint32_t ttl = 0;
31
32 -#ifdef _LINUX
33 +#if defined(_LINUX) && ! defined(__UCLIBC__)
34 memset(&res, 0, sizeof(res));
35 res.options = RES_DEBUG;
36 res_ninit(&res);
37 @@ -47,7 +47,7 @@
38 #endif
39
40 memset(answer, 0, sizeof(answer));
41 -#ifdef _LINUX
42 +#if defined(_LINUX) && ! defined(__UCLIBC__)
43 ret = res_nquery(&res, label, C_IN, rrtype, answer, sizeof(answer));
44 #else
45 ret = res_query(label, C_IN, rrtype, answer, sizeof(answer));