On Tue, Nov 13, 2018 at 07:22:08PM +0200, Baruch Siach wrote:
> 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.

Applied, thanks.

Reply via email to