Netdev List
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: zhengrq.fnst@cn.fujitsu.com
Cc: netdev@vger.kernel.org, thomas.petazzoni@free-electrons.com,
	maxin.john@intel.com
Subject: Re: [PATCH] Avoid in6_addr redefinition
Date: Wed, 18 Jan 2017 21:40:12 -0500 (EST)	[thread overview]
Message-ID: <20170118.214012.2158405175540797294.davem@davemloft.net> (raw)
In-Reply-To: <1484792716-111108-1-git-send-email-zhengrq.fnst@cn.fujitsu.com>

From: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Date: Thu, 19 Jan 2017 10:25:16 +0800

> Due to both <netinet/in.h> and <linux/in6.h> being included, the 
> in6_addr is being redefined: once from the C library headers and once
> from the kernel headers. This causes some build failures with for 
> example the musl C library.
> 
> In order to fix this, use just the C library header <netinet/in.h>.
> Original patch taken from
> http://git.alpinelinux.org/cgit/aports/tree/main/iproute2/musl-fixes.patch.
> 
> (Refreshed the patch for 4.9 release)
> 
> Upstream-Status: Pending
> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> Signed-off-by: Maxin B. John <maxin.john@intel.com>
> Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>

We have multiple definition avoidance using CPP tests, which works in
concert with GLIBC headers, that is supposed to avoid this properly.

      reply	other threads:[~2017-01-19  2:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-19  2:25 [PATCH] Avoid in6_addr redefinition Zheng Ruoqin
2017-01-19  2:40 ` David Miller [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=20170118.214012.2158405175540797294.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=maxin.john@intel.com \
    --cc=netdev@vger.kernel.org \
    --cc=thomas.petazzoni@free-electrons.com \
    --cc=zhengrq.fnst@cn.fujitsu.com \
    /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