From 1dd0fd9b433aa3b405c4f1f96312ba6a0cc8ea36 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Wed, 13 May 2026 15:48:34 +0200 Subject: [PATCH] meson: gate test_child_create on sys/prctl.h MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The target needs this header, encode this in the build system. Signed-off-by: Thomas Weißschuh --- meson.build | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.47.3