* [iproute2][PATCH] ip: Remove unneed header
@ 2017-06-12 4:33 Changhyeok Bae
2017-06-14 17:04 ` Stephen Hemminger
0 siblings, 1 reply; 2+ messages in thread
From: Changhyeok Bae @ 2017-06-12 4:33 UTC (permalink / raw)
To: netdev; +Cc: stephen, Changhyeok Bae
Fix redefinition of struct ethhdr with a suitably patched musl libc
that suppresses the kernel if_ether.h.
Signed-off-by: Changhyeok Bae <changhyeok.bae@gmail.com>
---
ip/iplink_bridge.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/ip/iplink_bridge.c b/ip/iplink_bridge.c
index cccdec1..f065b22 100644
--- a/ip/iplink_bridge.c
+++ b/ip/iplink_bridge.c
@@ -13,7 +13,6 @@
#include <stdlib.h>
#include <string.h>
#include <netinet/in.h>
-#include <netinet/ether.h>
#include <linux/if_link.h>
#include <linux/if_bridge.h>
#include <net/if.h>
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [iproute2][PATCH] ip: Remove unneed header
2017-06-12 4:33 [iproute2][PATCH] ip: Remove unneed header Changhyeok Bae
@ 2017-06-14 17:04 ` Stephen Hemminger
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2017-06-14 17:04 UTC (permalink / raw)
To: Changhyeok Bae; +Cc: netdev
On Mon, 12 Jun 2017 04:33:35 +0000
Changhyeok Bae <changhyeok.bae@gmail.com> wrote:
> Fix redefinition of struct ethhdr with a suitably patched musl libc
> that suppresses the kernel if_ether.h.
>
> Signed-off-by: Changhyeok Bae <changhyeok.bae@gmail.com>
> ---
> ip/iplink_bridge.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/ip/iplink_bridge.c b/ip/iplink_bridge.c
> index cccdec1..f065b22 100644
> --- a/ip/iplink_bridge.c
> +++ b/ip/iplink_bridge.c
> @@ -13,7 +13,6 @@
> #include <stdlib.h>
> #include <string.h>
> #include <netinet/in.h>
> -#include <netinet/ether.h>
> #include <linux/if_link.h>
> #include <linux/if_bridge.h>
> #include <net/if.h>
Sorry, doing this causes:
iplink_bridge.c: In function ‘br_dump_bridge_id’:
iplink_bridge.c:77:2: warning: implicit declaration of function ‘ether_ntoa_r’ [-Wimplicit-function-declaration]
ether_ntoa_r((const struct ether_addr *)id->addr, eaddr);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-06-14 17:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-12 4:33 [iproute2][PATCH] ip: Remove unneed header Changhyeok Bae
2017-06-14 17:04 ` Stephen Hemminger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).