From 1dc5dd58ccceebe1cc1a0596b764e8c84979f494 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 (cherry picked from commit 1399c75764811398086b9e7bbb59c5ebfccf2310) --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 6d1f986af..2fbd87c24 100644 --- a/meson.build +++ b/meson.build @@ -2783,7 +2783,8 @@ if opt and not is_disabler(exe) bashcompletions += ['lsblk'] endif -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, -- 2.47.2