From: Baruch Siach Date: Tue, 13 Nov 2018 17:22:08 +0000 (+0200) Subject: ebtables: vlan: fix userspace/kernel headers collision X-Git-Tag: v1.8.3~119 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=51d374ba41ae4f1bb851228c06b030b83dd2092f;p=thirdparty%2Fiptables.git ebtables: vlan: fix userspace/kernel headers collision Build with musl libc fails because of conflicting struct ethhdr definitions: In file included from .../sysroot/usr/include/net/ethernet.h:10:0, from ../iptables/nft-bridge.h:8, from libebt_vlan.c:18: .../sysroot/usr/include/netinet/if_ether.h:107:8: error: redefinition of ‘struct ethhdr’ struct ethhdr { ^~~~~~ In file included from libebt_vlan.c:16:0: .../sysroot/usr/include/linux/if_ether.h:160:8: note: originally defined here struct ethhdr { ^~~~~~ Include the userspace header first for the definition suppression logic to do the right thing. Signed-off-by: Baruch Siach Signed-off-by: Pablo Neira Ayuso --- diff --git a/extensions/libebt_vlan.c b/extensions/libebt_vlan.c index 4a2eb712..be269c6c 100644 --- a/extensions/libebt_vlan.c +++ b/extensions/libebt_vlan.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include "iptables/nft.h"