From: Thomas Weißschuh Date: Wed, 13 May 2026 13:48:34 +0000 (+0200) Subject: meson: gate test_child_create on sys/prctl.h X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1dd0fd9b433aa3b405c4f1f96312ba6a0cc8ea36;p=thirdparty%2Futil-linux.git meson: gate test_child_create on sys/prctl.h The target needs this header, encode this in the build system. Signed-off-by: Thomas Weißschuh --- diff --git a/meson.build b/meson.build index c899a281a..e79a9eef6 100644 --- a/meson.build +++ b/meson.build @@ -4090,13 +4090,14 @@ if not is_disabler(exe) exes += exe endif +opt = conf.get('HAVE_SYS_PRCTL_H').to_string() == '1' exe = executable( 'test_child_create', 'tests/helpers/test_child_create.c', include_directories : includes, link_with : lib_common, - build_by_default: program_tests) -if not is_disabler(exe) + build_by_default: opt and program_tests ) +if opt and not is_disabler(exe) exes += exe endif