]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: conditionalize waitpid
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 13 Jun 2023 08:15:39 +0000 (10:15 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 13 Jun 2023 19:12:00 +0000 (21:12 +0200)
I *think* this mirros what configure.ac does, except that the configuration
option is not implemented.

meson.build

index 941bd4a9919fecf38e5d074a90455a3ed056a68a..a0c5457c58aba33850814cff71d64532e186c09b 100644 (file)
@@ -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',