From: Zbigniew Jędrzejewski-Szmek Date: Tue, 13 Jun 2023 08:15:39 +0000 (+0200) Subject: meson: conditionalize waitpid X-Git-Tag: v2.40-rc1~390^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=334939a19d72febc0ce6f2913a9692123db79058;p=thirdparty%2Futil-linux.git meson: conditionalize waitpid I *think* this mirros what configure.ac does, except that the configuration option is not implemented. --- 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',