All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Suykov <alex.suykov@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] aiccu: fix uclibc builds
Date: Mon, 30 Mar 2015 14:13:39 +0300	[thread overview]
Message-ID: <20150330111339.GA30483@vostro> (raw)

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>
---
 package/aiccu/0005-res-ninit.patch | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/package/aiccu/0005-res-ninit.patch b/package/aiccu/0005-res-ninit.patch
index 89770fb..faf38df 100644
--- a/package/aiccu/0005-res-ninit.patch
+++ b/package/aiccu/0005-res-ninit.patch
@@ -9,7 +9,7 @@
  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 @@
  	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 @@
  
  	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));
-- 
2.0.3

             reply	other threads:[~2015-03-30 11:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-30 11:13 Alex Suykov [this message]
2015-03-30 15:54 ` [Buildroot] [PATCH] aiccu: fix uclibc builds Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150330111339.GA30483@vostro \
    --to=alex.suykov@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.