libbpf: fixed build error for samples/bpf/
authorBjörn Töpel <bjorn.topel@intel.com>
Fri, 20 Apr 2018 08:05:16 +0000 (10:05 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 20 Apr 2018 08:12:19 +0000 (10:12 +0200)
commit878a4d328104fed86ea321c48a5245eed44fbe14
tree8b995197d4b1844908aee893d876f929cb5db162
parent34df9d37abe0b7cd86d08d88b54de9db211d15c0
libbpf: fixed build error for samples/bpf/

Commit 8a138aed4a80 ("bpf: btf: Add BTF support to libbpf") did not
include stdbool.h, so GCC complained when building samples/bpf/.

In file included from /home/btopel/src/ext/linux/samples/bpf/libbpf.h:6:0,
                 from /home/btopel/src/ext/linux/samples/bpf/test_lru_dist.c:24:
/home/btopel/src/ext/linux/tools/lib/bpf/bpf.h:105:4: error: unknown type name ‘bool’; did you mean ‘_Bool’?
    bool do_log);
    ^~~~
    _Bool

Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/lib/bpf/bpf.h