Florian Fainelli
2017-05-07 21:44:13 UTC
musl-libc does not provide a net/ethernet.h which is a glibc-ism.
eth_hdr is already declared in ether.h and provides everything that is
necessary.
Signed-off-by: Wojciech Dubowik <***@neratec.com>
[florian: extract patch for OpenWrt, add commit message]
Signed-off-by: Florian Fainelli <***@gmail.com>
---
raw.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/raw.c b/raw.c
index f51c829657af..73e45b45bd25 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>
eth_hdr is already declared in ether.h and provides everything that is
necessary.
Signed-off-by: Wojciech Dubowik <***@neratec.com>
[florian: extract patch for OpenWrt, add commit message]
Signed-off-by: Florian Fainelli <***@gmail.com>
---
raw.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/raw.c b/raw.c
index f51c829657af..73e45b45bd25 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.11.0
2.11.0