Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] package/lxc: add patch to fix musl build
Date: Tue, 24 May 2016 20:50:52 +0200	[thread overview]
Message-ID: <20160524205052.1902eff8@free-electrons.com> (raw)
In-Reply-To: <1463721348-13936-1-git-send-email-joerg.krause@embedded.rocks>

Hello,

On Fri, 20 May 2016 07:15:48 +0200, J?rg Krause wrote:
> Add a patch to fix a build issue with the musl C library.
> 
> struct in6_addr is both defined in the C library header <netinet/in.h> and the
> Linux kernel header <linux/in6.h>.
> 
> lxc_user_nic.c includes both <netinet/in.h> and <linux/if_bridge.h>. The later
> one includes <linux/in6.h>.
> 
> This breaks build with the musl libc:
>   error: redefinition of ?struct in6_addr?
> 
> As lxc_user_nic.c does not use any references from <linux/if_bridge.h> it is
> safe to remove this header.
> 
> Fixes:
> http://autobuild.buildroot.net/results/f32/f321823be6b477be7dc55393e563a3a61794265d/
> http://autobuild.buildroot.net/results/8ab/8ab2dc8e0634fbfb582db94cdf94cee5712711f9/
> http://autobuild.buildroot.net/results/e27/e27d637b1bb7278ae30d86a72a2d88432d805d2c/
> .. and more.
> 
> Upstream status: Pending
> https://github.com/lxc/lxc/pull/1029
> 
> Signed-off-by: J?rg Krause <joerg.krause@embedded.rocks>
> ---
>  .../0002-Fix-redefinition-of-struct-in6_addr.patch | 43 ++++++++++++++++++++++
>  1 file changed, 43 insertions(+)
>  create mode 100644 package/lxc/0002-Fix-redefinition-of-struct-in6_addr.patch

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

      reply	other threads:[~2016-05-24 18:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-20  5:15 [Buildroot] [PATCH] package/lxc: add patch to fix musl build Jörg Krause
2016-05-24 18:50 ` Thomas Petazzoni [this message]

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=20160524205052.1902eff8@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox