]> 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:29:59 +0000 (14:29 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
meson.build

index c871760e05744805c60be9d56de523d654600c88..95e6541e92080bee5a5f7bc1a5187a63835eb286 100644 (file)
@@ -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,