From: Karel Zak Date: Mon, 26 Aug 2024 12:23:16 +0000 (+0200) Subject: meson: check for BPF_OBJ_NAME_LEN and linux/bpf.h X-Git-Tag: v2.40.3~65 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=1dc5dd58ccceebe1cc1a0596b764e8c84979f494;p=thirdparty%2Futil-linux.git meson: check for BPF_OBJ_NAME_LEN and linux/bpf.h Signed-off-by: Karel Zak (cherry picked from commit 1399c75764811398086b9e7bbb59c5ebfccf2310) --- 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,