]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: check for BPF_OBJ_NAME_LEN and linux/bpf.h
authorKarel Zak <kzak@redhat.com>
Mon, 26 Aug 2024 12:23:16 +0000 (14:23 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 26 Aug 2024 12:33:09 +0000 (14:33 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit 1399c75764811398086b9e7bbb59c5ebfccf2310)

meson.build

index 6d1f986af453275e5f1a33258180385dac95271e..2fbd87c24c0372318d04d9023ab14dd11af84981 100644 (file)
@@ -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,