Re: [PATCH bpf-next] libbpf: add _GNU_SOURCE for reallocarray to ringbuf.c

2020-06-01 Thread Alexei Starovoitov
On Mon, Jun 1, 2020 at 1:36 PM Song Liu wrote: > > On Mon, Jun 1, 2020 at 1:26 PM Andrii Nakryiko wrote: > > > > On systems with recent enough glibc, reallocarray compat won't kick in, so > > reallocarray() itself has to come from stdlib.h include. But _GNU_SOURCE is > > necessary to enable it. S

Re: [PATCH bpf-next] libbpf: add _GNU_SOURCE for reallocarray to ringbuf.c

2020-06-01 Thread Song Liu
On Mon, Jun 1, 2020 at 1:26 PM Andrii Nakryiko wrote: > > On systems with recent enough glibc, reallocarray compat won't kick in, so > reallocarray() itself has to come from stdlib.h include. But _GNU_SOURCE is > necessary to enable it. So add it. > > Fixes: 4cff2ba58bf1 ("libbpf: Add BPF ring buf

[PATCH bpf-next] libbpf: add _GNU_SOURCE for reallocarray to ringbuf.c

2020-06-01 Thread Andrii Nakryiko
On systems with recent enough glibc, reallocarray compat won't kick in, so reallocarray() itself has to come from stdlib.h include. But _GNU_SOURCE is necessary to enable it. So add it. Fixes: 4cff2ba58bf1 ("libbpf: Add BPF ring buffer support") Signed-off-by: Andrii Nakryiko --- tools/lib/bpf/r