diff mbox

[OpenWrt-Devel,v2,2/3] iproute2: fix header problem for musl

Message ID 1421065992-16733-2-git-send-email-russell@personaltelco.net
State Accepted
Headers show

Commit Message

Russell Senior Jan. 12, 2015, 12:33 p.m. UTC
iproute2 includes "sanitized" linux kernel headers, which work fine for uClibc, however
with musl there is some header conflict, principally some ipv6 structure redefinition.  This
patch removes <linux/in6.h> from include/linux/if_bridge.h to solve the problem.

Signed-off-by: Russell Senior <russell@personaltelco.net>
---
 .../utils/iproute2/patches/910-sanitize_headers_for_musl.patch | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 package/network/utils/iproute2/patches/910-sanitize_headers_for_musl.patch
diff mbox

Patch

diff --git a/package/network/utils/iproute2/patches/910-sanitize_headers_for_musl.patch b/package/network/utils/iproute2/patches/910-sanitize_headers_for_musl.patch
new file mode 100644
index 0000000..ca1125d
--- /dev/null
+++ b/package/network/utils/iproute2/patches/910-sanitize_headers_for_musl.patch
@@ -0,0 +1,10 @@ 
+--- a/include/linux/if_bridge.h
++++ b/include/linux/if_bridge.h
+@@ -15,7 +15,6 @@
+ 
+ #include <linux/types.h>
+ #include <linux/if_ether.h>
+-#include <linux/in6.h>
+ 
+ #define SYSFS_BRIDGE_ATTR	"bridge"
+ #define SYSFS_BRIDGE_FDB	"brforward"