From: Thomas Weißschuh Date: Wed, 29 Apr 2026 12:19:52 +0000 (+0200) Subject: meson: only build test_enosys when HAVE_FALLOCATE X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=d87e871affba3d9d5051788f6b8496cedb855d44;p=thirdparty%2Futil-linux.git meson: only build test_enosys when HAVE_FALLOCATE The test program calls fallocate(), so don't try to build it when that is not available. Signed-off-by: Thomas Weißschuh --- diff --git a/meson.build b/meson.build index 793da8563..48e959dfa 100644 --- a/meson.build +++ b/meson.build @@ -3991,11 +3991,12 @@ if LINUX and lib_rt.found() exes += exe endif +opt = conf.get('HAVE_FALLOCATE').to_string() == '1' exe = executable( 'test_enosys', 'tests/helpers/test_enosys.c', include_directories : includes, - build_by_default: program_tests) + build_by_default: opt and program_tests) exes += exe exe = executable(