From 334939a19d72febc0ce6f2913a9692123db79058 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 13 Jun 2023 10:15:39 +0200 Subject: [PATCH] meson: conditionalize waitpid I *think* this mirros what configure.ac does, except that the configuration option is not implemented. --- meson.build | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/meson.build b/meson.build index 941bd4a991..a0c5457c58 100644 --- a/meson.build +++ b/meson.build @@ -2860,18 +2860,19 @@ if not is_disabler(exe) bashcompletions += ['fadvise'] endif -# XXX: HAVE_PIDFD_OPEN -exe = executable( - 'waitpid', - waitpid_sources, - include_directories : includes, - link_with : [lib_common], - install_dir : usrbin_exec_dir, - install : true) -if not is_disabler(exe) - exes += exe - manadocs += ['misc-utils/waitpid.1.adoc'] - bashcompletions += ['waitpid'] +if LINUX and conf.get('HAVE_PIDFD_OPEN') != false + exe = executable( + 'waitpid', + waitpid_sources, + include_directories : includes, + link_with : [lib_common], + install_dir : usrbin_exec_dir, + install : true) + if not is_disabler(exe) + exes += exe + manadocs += ['misc-utils/waitpid.1.adoc'] + bashcompletions += ['waitpid'] + endif endif syscalls_h = custom_target('syscalls.h', -- 2.47.2