From 1399c75764811398086b9e7bbb59c5ebfccf2310 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 26 Aug 2024 14:23:16 +0200 Subject: [PATCH] meson: check for BPF_OBJ_NAME_LEN and linux/bpf.h Signed-off-by: Karel Zak --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index c871760e0..95e6541e9 100644 --- a/meson.build +++ b/meson.build @@ -2895,7 +2895,8 @@ errnos_h = custom_target('errnos.h', cc.cmd_array(), get_option('c_args')], ) -opt = not get_option('build-lsfd').require(lib_rt.found()).disabled() +opt = not get_option('build-lsfd').require(lib_rt.found()).disabled() \ + and cc.has_header_symbol('linux/bpf.h', 'BPF_OBJ_NAME_LEN') exe = executable( 'lsfd', lsfd_sources, errnos_h, -- 2.47.3