Skip to content

Commit 1d7a08b

Browse files
anakryikoAlexei Starovoitov
authored andcommitted
libbpf: ensure libbpf.h is included along libbpf_internal.h
libbpf_internal.h expects a bunch of stuff defined in libbpf.h to be defined. This patch makes sure that libbpf.h is always included. Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
1 parent c87f60a commit 1d7a08b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/lib/bpf/libbpf_internal.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
#ifndef __LIBBPF_LIBBPF_INTERNAL_H
1010
#define __LIBBPF_LIBBPF_INTERNAL_H
1111

12+
#include "libbpf.h"
13+
1214
#define BTF_INFO_ENC(kind, kind_flag, vlen) \
1315
((!!(kind_flag) << 31) | ((kind) << 24) | ((vlen) & BTF_MAX_VLEN))
1416
#define BTF_TYPE_ENC(name, info, size_or_type) (name), (info), (size_or_type)

0 commit comments

Comments
 (0)