From f65c49002f7fc39916bba441fe59ef3c6c0ce5c8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Mon, 22 May 2023 18:24:47 +0200 Subject: [PATCH] waitpid: only build when pidfd_open is available MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes #2256 [kzak@redhat.com: - fix UL_BUILD_INIT() use] Signed-off-by: Thomas Weißschuh Signed-off-by: Karel Zak --- configure.ac | 1 + meson.build | 1 + 2 files changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index 6fac9cb4f0..048bbcd782 100644 --- a/configure.ac +++ b/configure.ac @@ -1849,6 +1849,7 @@ AM_CONDITIONAL([BUILD_FADVISE], [test "x$build_fadvise" = xyes]) UL_BUILD_INIT([waitpid], [check]) UL_REQUIRES_LINUX([waitpid]) +UL_REQUIRES_SYSCALL_CHECK([waitpid], [UL_CHECK_SYSCALL([pidfd_open])], [pidfd_open]) AM_CONDITIONAL([BUILD_WAITPID], [test "x$build_waitpid" = xyes]) UL_BUILD_INIT([getopt], [yes]) diff --git a/meson.build b/meson.build index c56f83b1fa..641d236747 100644 --- a/meson.build +++ b/meson.build @@ -2843,6 +2843,7 @@ if not is_disabler(exe) bashcompletions += ['fadvise'] endif +# XXX: HAVE_PIDFD_OPEN exe = executable( 'waitpid', waitpid_sources, -- 2.47.3