]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
iproute2: tc_bpf.c: fix building with musl libc
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Fri, 8 Apr 2016 12:59:33 +0000 (09:59 -0300)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 11 Apr 2016 22:09:57 +0000 (22:09 +0000)
We need limits.h for PATH_MAX, fixes:

tc_bpf.c: In function ‘bpf_map_selfcheck_pinned’:
tc_bpf.c:222:12: error: ‘PATH_MAX’ undeclared (first use in this
function)
  char file[PATH_MAX], buff[4096];

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
tc/tc_bpf.c

index fe927ac9049d627b5600c958462010ab56fbe2ed..86c6069b68ec45f8675f9b42cac6f79631095e14 100644 (file)
@@ -20,6 +20,7 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <stdarg.h>
+#include <limits.h>
 
 #ifdef HAVE_ELF
 #include <libelf.h>