board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / iproute2 / 0003-tc-add-missing-limits.h-header.patch
blobb9b27f31a704d57ab738b7f002395465a10c01fb
1 From 1f4547b0a81db617f4b0d02711d9e39278eb8283 Mon Sep 17 00:00:00 2001
2 From: Baruch Siach <baruch@tkos.co.il>
3 Date: Thu, 22 Dec 2016 20:45:11 +0200
4 Subject: [PATCH] tc: add missing limits.h header
6 This fixes under musl build issues like:
8 f_matchall.c: In function ‘matchall_parse_opt’:
9 f_matchall.c:48:12: error: ‘LONG_MIN’ undeclared (first use in this function)
10 if (h == LONG_MIN || h == LONG_MAX) {
12 f_matchall.c:48:12: note: each undeclared identifier is reported only once for each function it appears in
13 f_matchall.c:48:29: error: ‘LONG_MAX’ undeclared (first use in this function)
14 if (h == LONG_MIN || h == LONG_MAX) {
17 Signed-off-by: Baruch Siach <baruch@tkos.co.il>
18 ---
19 Upstream status: posted http://marc.info/?l=linux-netdev&m=148243283002957&w=2
20 ---
21 tc/tc_util.h | 1 +
22 1 file changed, 1 insertion(+)
24 diff --git a/tc/tc_util.h b/tc/tc_util.h
25 index f198a4ad5554..4db26c6d5e25 100644
26 --- a/tc/tc_util.h
27 +++ b/tc/tc_util.h
28 @@ -2,6 +2,7 @@
29 #define _TC_UTIL_H_ 1
31 #define MAX_MSG 16384
32 +#include <limits.h>
33 #include <linux/pkt_sched.h>
34 #include <linux/pkt_cls.h>
35 #include <linux/gen_stats.h>
36 --
37 2.11.0