Re: [PATCH] backends: Don't depend on linux/bpf.h to compile bpf disassembler.

2017-07-24 Thread Mark Wielaard
On Tue, Jul 18, 2017 at 02:19:58PM +0200, Mark Wielaard wrote: > We only need a few constants and one structure definition from linux/bpf. > Just define those in a local lib/bpf.h file. This makes sure the bpf > disassembler is always build and included even when elfutils is build > on older GNU/Li

[PATCH] backends: Don't depend on linux/bpf.h to compile bpf disassembler.

2017-07-18 Thread Mark Wielaard
We only need a few constants and one structure definition from linux/bpf. Just define those in a local lib/bpf.h file. This makes sure the bpf disassembler is always build and included even when elfutils is build on older GNU/Linux systems (and even on other platforms). Signed-off-by: Mark Wielaar