On 03/06/2018 02:50 PM, Jiri Benc wrote:
> Compilation of bpftool on a distro that lacks eBPF support in the installed
> kernel headers fails with:
> common.c: In function ‘is_bpffs’:
> common.c:96:40: error: ‘BPF_FS_MAGIC’ undeclared (first use in this function)
> return (unsigned long)st_fs.f_type == BPF_FS_MAGIC;
> Fix this the same way it is already in tools/lib/bpf/libbpf.c and
> Signed-off-by: Jiri Benc <jb...@redhat.com>
Applied it to bpf tree, thanks Jiri!
If preferred by Arnaldo/Ingo/others we can still pull in magic.h later on in
bpf-next and get rid of the ifdefs, not a big thing either.