0003-tc-add-missing-limits.h-header.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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
  5. This fixes under musl build issues like:
  6. f_matchall.c: In function ‘matchall_parse_opt’:
  7. f_matchall.c:48:12: error: ‘LONG_MIN’ undeclared (first use in this function)
  8. if (h == LONG_MIN || h == LONG_MAX) {
  9. ^
  10. f_matchall.c:48:12: note: each undeclared identifier is reported only once for each function it appears in
  11. f_matchall.c:48:29: error: ‘LONG_MAX’ undeclared (first use in this function)
  12. if (h == LONG_MIN || h == LONG_MAX) {
  13. ^
  14. Signed-off-by: Baruch Siach <baruch@tkos.co.il>
  15. ---
  16. Upstream status: posted http://marc.info/?l=linux-netdev&m=148243283002957&w=2
  17. ---
  18. tc/tc_util.h | 1 +
  19. 1 file changed, 1 insertion(+)
  20. diff --git a/tc/tc_util.h b/tc/tc_util.h
  21. index f198a4ad5554..4db26c6d5e25 100644
  22. --- a/tc/tc_util.h
  23. +++ b/tc/tc_util.h
  24. @@ -2,6 +2,7 @@
  25. #define _TC_UTIL_H_ 1
  26. #define MAX_MSG 16384
  27. +#include <limits.h>
  28. #include <linux/pkt_sched.h>
  29. #include <linux/pkt_cls.h>
  30. #include <linux/gen_stats.h>
  31. --
  32. 2.11.0