On some platforms like br-arm-cortex-a9-musl struct ethhdr was defined twice due to including of both linux/if_ether.h and netinet/ether.h. Which lead to a compilation error.
Remove netinet/ether.h as the official header for struct ethhdr is linux/if_ether.h Signed-off-by: Petr Kulhavy <br...@jikos.cz> --- raw.c | 1 - 1 file changed, 1 deletion(-) diff --git a/raw.c b/raw.c index f51c829..73e45b4 100644 --- a/raw.c +++ b/raw.c @@ -20,7 +20,6 @@ #include <fcntl.h> #include <linux/filter.h> #include <linux/if_ether.h> -#include <net/ethernet.h> #include <net/if.h> #include <netinet/in.h> #include <netpacket/packet.h> -- 2.7.4 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel