summaryrefslogtreecommitdiffstats
path: root/package/iproute2/0002-ip-include-libc-headers-first.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <peter@korsgaard.com>2017-06-01 22:28:14 +0200
committerPeter Korsgaard <peter@korsgaard.com>2017-06-01 22:28:14 +0200
commit11271540bfe6adafbc133caf6b5b902a816f5f02 (patch)
tree48df469d4e88c7e6efc0a8f4f8d5a386468ed72b /package/iproute2/0002-ip-include-libc-headers-first.patch
parent24d6c5258ee38c38f0156b057cecd3cfe7ed7b1d (diff)
parent8e5eef6c323c6a928ccea7279b3d9848419b99d9 (diff)
downloadbuildroot-11271540bfe6adafbc133caf6b5b902a816f5f02.tar.gz
buildroot-11271540bfe6adafbc133caf6b5b902a816f5f02.zip
Merge branch 'next'
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/iproute2/0002-ip-include-libc-headers-first.patch')
-rw-r--r--package/iproute2/0002-ip-include-libc-headers-first.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/package/iproute2/0002-ip-include-libc-headers-first.patch b/package/iproute2/0002-ip-include-libc-headers-first.patch
new file mode 100644
index 0000000000..b842142443
--- /dev/null
+++ b/package/iproute2/0002-ip-include-libc-headers-first.patch
@@ -0,0 +1,35 @@
+From 8afdd8babb9e82bcfde78e851b24b698436a6f9f Mon Sep 17 00:00:00 2001
+Message-Id: <8afdd8babb9e82bcfde78e851b24b698436a6f9f.1495466847.git.baruch@tkos.co.il>
+From: Baruch Siach <baruch@tkos.co.il>
+Date: Mon, 22 May 2017 15:42:49 +0300
+Subject: [PATCH] ip: include libc headers first
+
+Including libc headers first helps as a workaround to redefinition of struct
+ethhdr with a suitably patched musl libc that suppresses the kernel
+if_ether.h.
+
+Signed-off-by: Baruch Siach <baruch@tkos.co.il>
+---
+Upstream status: posted http://marc.info/?l=linux-netdev&m=149545968900803&w=2
+
+ ip/iplink_bridge.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/ip/iplink_bridge.c b/ip/iplink_bridge.c
+index 818b43c89b5b..cccdec1c203a 100644
+--- a/ip/iplink_bridge.c
++++ b/ip/iplink_bridge.c
+@@ -13,9 +13,9 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <netinet/in.h>
++#include <netinet/ether.h>
+ #include <linux/if_link.h>
+ #include <linux/if_bridge.h>
+-#include <netinet/ether.h>
+ #include <net/if.h>
+
+ #include "rt_names.h"
+--
+2.11.0
+
OpenPOWER on IntegriCloud