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

* Re: [PATCH] iproute2: tc_bpf.c: fix building with musl libc
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel Borkmann @ 2016-04-08 13:14 UTC (permalink / raw)
  To: Gustavo Zacarias, netdev

On 04/08/2016 02:59 PM, Gustavo Zacarias wrote:
> 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>

Fine with me, thanks!

Acked-by: Daniel Borkmann <daniel@iogearbox.net>

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

* Re: [PATCH] iproute2: tc_bpf.c: fix building with musl libc
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Hemminger @ 2016-04-11 22:17 UTC (permalink / raw)
  To: Gustavo Zacarias; +Cc: netdev

On Fri,  8 Apr 2016 09:59:33 -0300
Gustavo Zacarias <gustavo@zacarias.com.ar> wrote:

> 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>

Applied

^ permalink raw reply	[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.