]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/linuxptp.git/commitdiff
Remove conflicting netinet/ether.h
authorPetr Kulhavy <brain@jikos.cz>
Mon, 15 May 2017 08:17:52 +0000 (10:17 +0200)
committerRichard Cochran <richardcochran@gmail.com>
Mon, 15 May 2017 21:18:19 +0000 (23:18 +0200)
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 <brain@jikos.cz>
raw.c

diff --git a/raw.c b/raw.c
index f51c829657afd29787c693b448442cdbdfed9405..73e45b45bd25af678d50f94f0ed9b050d67de68c 100644 (file)
--- 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>