xref: /OK3568_Linux_fs/buildroot/package/musl/0001-avoid-kernel-if_ether.h.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 3984adc4976de7553f51e0cf4de1e18c373b332b Mon Sep 17 00:00:00 2001
2From: Baruch Siach <baruch@tkos.co.il>
3Date: Thu, 15 Dec 2016 15:10:19 +0200
4Subject: [PATCH] Avoid redefinition of struct ethhdr
5
6This is a workaround to the if_ether.h conflict between musl and the kernel.
7Both define struct ethhdr.
8
9Signed-off-by: Baruch Siach <baruch@tkos.co.il>
10---
11 include/netinet/if_ether.h | 3 +++
12 1 file changed, 3 insertions(+)
13
14diff --git a/include/netinet/if_ether.h b/include/netinet/if_ether.h
15index 11ee65823f93..cfe1949d3371 100644
16--- a/include/netinet/if_ether.h
17+++ b/include/netinet/if_ether.h
18@@ -1,6 +1,9 @@
19 #ifndef _NETINET_IF_ETHER_H
20 #define _NETINET_IF_ETHER_H
21
22+/* Suppress kernel if_ether.h header inclusion */
23+#define _LINUX_IF_ETHER_H
24+
25 #include <stdint.h>
26 #include <sys/types.h>
27
28--
292.10.2
30
31