Make sure that BPFLOADER_VERSION >= COMPILE_FOR_BPFLOADER_VERSION
Test: TreeHugger Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: I3612460f81a210df0293c0a0f589c2d5a29f615b
This commit is contained in:
parent
15f1bf8928
commit
b3dcc14182
1 changed files with 4 additions and 0 deletions
|
|
@ -39,6 +39,10 @@
|
|||
#include "bpf/bpf_map_def.h"
|
||||
#include "include/libbpf_android.h"
|
||||
|
||||
#if BPFLOADER_VERSION < COMPILE_FOR_BPFLOADER_VERSION
|
||||
#error "BPFLOADER_VERSION is less than COMPILE_FOR_BPFLOADER_VERSION"
|
||||
#endif
|
||||
|
||||
#include <bpf/bpf.h>
|
||||
|
||||
#include <cstdlib>
|
||||
|
|
|
|||
Loading…
Reference in a new issue