0003-iproute2-tc_bpf.c-fix-building-with-musl-libc..patch 925 B

12345678910111213141516171819202122232425262728293031323334353637
  1. From 01b287582f25cc3a8a36caee5ce13e14b9233f49 Mon Sep 17 00:00:00 2001
  2. From: Gustavo Zacarias <gustavo@zacarias.com.ar>
  3. Date: Fri, 8 Apr 2016 09:52:55 -0300
  4. Subject: [PATCH] iproute2: tc_bpf.c: fix building with musl libc
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. We need limits.h for PATH_MAX, fixes:
  9. tc_bpf.c: In function ‘bpf_map_selfcheck_pinned’:
  10. tc_bpf.c:222:12: error: ‘PATH_MAX’ undeclared (first use in this
  11. function)
  12. char file[PATH_MAX], buff[4096];
  13. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
  14. ---
  15. Patch status: submitted upstream
  16. tc/tc_bpf.c | 1 +
  17. 1 file changed, 1 insertion(+)
  18. diff --git a/tc/tc_bpf.c b/tc/tc_bpf.c
  19. index d94af82..042e76f 100644
  20. --- a/tc/tc_bpf.c
  21. +++ b/tc/tc_bpf.c
  22. @@ -20,6 +20,7 @@
  23. #include <errno.h>
  24. #include <fcntl.h>
  25. #include <stdarg.h>
  26. +#include <limits.h>
  27. #ifdef HAVE_ELF
  28. #include <libelf.h>
  29. --
  30. 2.7.3