All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iproute2: tc_bpf.c: fix building with musl libc
@ 2016-04-08 12:59 Gustavo Zacarias
  2016-04-08 13:14 ` Daniel Borkmann
  2016-04-11 22:17 ` Stephen Hemminger
  0 siblings, 2 replies; 3+ messages in thread
From: Gustavo Zacarias @ 2016-04-08 12:59 UTC (permalink / raw)
  To: netdev; +Cc: Gustavo Zacarias

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>
---
 tc/tc_bpf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tc/tc_bpf.c b/tc/tc_bpf.c
index d94af82..042e76f 100644
--- a/tc/tc_bpf.c
+++ b/tc/tc_bpf.c
@@ -20,6 +20,7 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <stdarg.h>
+#include <limits.h>
 
 #ifdef HAVE_ELF
 #include <libelf.h>
-- 
2.7.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-04-11 22:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-08 12:59 [PATCH] iproute2: tc_bpf.c: fix building with musl libc Gustavo Zacarias
2016-04-08 13:14 ` Daniel Borkmann
2016-04-11 22:17 ` Stephen Hemminger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.