Commit 5c5a0f3d authored by Gustavo Zacarias's avatar Gustavo Zacarias Committed by Stephen Hemminger

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: default avatarGustavo Zacarias <gustavo@zacarias.com.ar>
Acked-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
parent 11522e7d
......@@ -20,6 +20,7 @@
#include <errno.h>
#include <fcntl.h>
#include <stdarg.h>
#include <limits.h>
#ifdef HAVE_ELF
#include <libelf.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment