summaryrefslogtreecommitdiffstats
path: root/package/iproute2/0003-tc-add-missing-limits.h-header.patch
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2016-12-22 23:17:58 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-12-23 00:04:46 +0100
commitbd9549610f3b90037d0ce996628e99dbbb5bbe9a (patch)
treeba49c0e114773d18051ebe58f0f9eb92ad90b747 /package/iproute2/0003-tc-add-missing-limits.h-header.patch
parent77c6476feabead9b0bef736e7615514494a7a97c (diff)
downloadbuildroot-bd9549610f3b90037d0ce996628e99dbbb5bbe9a.tar.gz
buildroot-bd9549610f3b90037d0ce996628e99dbbb5bbe9a.zip
iproute2: bump to version 4.9.0
Add the libc-compat.h musl workaround patch to the copy of the kernel header. Add a patch adding missing limits.h for musl. Drop 0001-Avoid-in6_addr-redefinition.patch; not needed after the libc-compat.h patch. Drop upstream 0003-iproute2-tc_bpf.c-fix-building-with-musl-libc..patch. Drop 0004-iproute-no-iptables.patch; should be fixed by upstream commit 4710e46ec3 (tc, ipt: don't enforce iproute2 dependency on iptables-devel). Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/iproute2/0003-tc-add-missing-limits.h-header.patch')
-rw-r--r--package/iproute2/0003-tc-add-missing-limits.h-header.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/package/iproute2/0003-tc-add-missing-limits.h-header.patch b/package/iproute2/0003-tc-add-missing-limits.h-header.patch
new file mode 100644
index 0000000000..b9b27f31a7
--- /dev/null
+++ b/package/iproute2/0003-tc-add-missing-limits.h-header.patch
@@ -0,0 +1,38 @@
+From 1f4547b0a81db617f4b0d02711d9e39278eb8283 Mon Sep 17 00:00:00 2001
+From: Baruch Siach <baruch@tkos.co.il>
+Date: Thu, 22 Dec 2016 20:45:11 +0200
+Subject: [PATCH] tc: add missing limits.h header
+
+This fixes under musl build issues like:
+
+f_matchall.c: In function ‘matchall_parse_opt’:
+f_matchall.c:48:12: error: ‘LONG_MIN’ undeclared (first use in this function)
+ if (h == LONG_MIN || h == LONG_MAX) {
+ ^
+f_matchall.c:48:12: note: each undeclared identifier is reported only once for each function it appears in
+f_matchall.c:48:29: error: ‘LONG_MAX’ undeclared (first use in this function)
+ if (h == LONG_MIN || h == LONG_MAX) {
+ ^
+
+Signed-off-by: Baruch Siach <baruch@tkos.co.il>
+---
+Upstream status: posted http://marc.info/?l=linux-netdev&m=148243283002957&w=2
+---
+ tc/tc_util.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/tc/tc_util.h b/tc/tc_util.h
+index f198a4ad5554..4db26c6d5e25 100644
+--- a/tc/tc_util.h
++++ b/tc/tc_util.h
+@@ -2,6 +2,7 @@
+ #define _TC_UTIL_H_ 1
+
+ #define MAX_MSG 16384
++#include <limits.h>
+ #include <linux/pkt_sched.h>
+ #include <linux/pkt_cls.h>
+ #include <linux/gen_stats.h>
+--
+2.11.0
+
OpenPOWER on IntegriCloud