iproute2: tc_bpf.c: fix building with musl libc

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>
This commit is contained in:
Gustavo Zacarias 2016-04-08 09:59:33 -03:00 committed by Stephen Hemminger
parent 11522e7d02
commit 5c5a0f3df9
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@
#include <errno.h>
#include <fcntl.h>
#include <stdarg.h>
#include <limits.h>
#ifdef HAVE_ELF
#include <libelf.h>