aboutsummaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorGravatar Alex Suykov <alex.suykov@gmail.com>2015-03-30 14:13:39 +0300
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-03-30 17:54:32 +0200
commit0b2a78668a0fb51231c9594997bf1fe1001c84c7 (patch)
tree0a31abf147543335fadb68ecf4372391978dcb26 /package
parent21388e3073deede4045d4660f3f0b838aab773d6 (diff)
downloadbuildroot-0b2a78668a0fb51231c9594997bf1fe1001c84c7.tar.gz
buildroot-0b2a78668a0fb51231c9594997bf1fe1001c84c7.tar.bz2
aiccu: fix uclibc builds
uClibc defines __GLIBC__ but does not provide res_nquery. Fixes: http://autobuild.buildroot.net/results/17248fa7f4deaacdab9bb22a777f51209af11e60/ http://autobuild.buildroot.net/results/bf155246563e2f6c44e18f7ee423305600a68b7e/ http://autobuild.buildroot.net/results/32a8c566604e79bf2de7d7236b49b6ab40b8cefd/ http://autobuild.buildroot.net/results/4093e4679412b50048860299dcfc301927e2cabc/ Signed-off-by: Alex Suykov <alex.suykov@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package')
-rw-r--r--package/aiccu/0005-res-ninit.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/aiccu/0005-res-ninit.patch b/package/aiccu/0005-res-ninit.patch
index 89770fbfdd..faf38df08d 100644
--- a/package/aiccu/0005-res-ninit.patch
+++ b/package/aiccu/0005-res-ninit.patch
@@ -9,7 +9,7 @@ Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
int getrrs(const char *label, int rrtype, void gotrec(unsigned int num, int type, const char *record))
{
-#ifdef _LINUX
-+#ifdef __GLIBC__
++#if defined(__GLIBC__) && !defined(__UCLIBC__)
struct __res_state res;
#endif
unsigned char answer[8192];
@@ -18,7 +18,7 @@ Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
uint32_t ttl = 0;
-#ifdef _LINUX
-+#ifdef __GLIBC__
++#if defined(__GLIBC__) && !defined(__UCLIBC__)
memset(&res, 0, sizeof(res));
res.options = RES_DEBUG;
res_ninit(&res);
@@ -27,7 +27,7 @@ Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
memset(answer, 0, sizeof(answer));
-#ifdef _LINUX
-+#ifdef __GLIBC__
++#if defined(__GLIBC__) && !defined(__UCLIBC__)
ret = res_nquery(&res, label, C_IN, rrtype, answer, sizeof(answer));
#else
ret = res_query(label, C_IN, rrtype, answer, sizeof(answer));