]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
waitpid: only build when pidfd_open is available
authorThomas Weißschuh <thomas@t-8ch.de>
Mon, 22 May 2023 16:24:47 +0000 (18:24 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Thu, 1 Jun 2023 10:16:34 +0000 (12:16 +0200)
Fixes #2256

[kzak@redhat.com: - fix UL_BUILD_INIT() use]

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac
meson.build

index 6fac9cb4f0a9b4e0fb1e962765aa082a73291f9b..048bbcd782ef2a10a18706b63a031bab42cd6ee7 100644 (file)
@@ -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])
index c56f83b1fa530816ba2c05e38cc5cd89ef37bdc0..641d23674776b25c183e0193841e15408ed84242 100644 (file)
@@ -2843,6 +2843,7 @@ if not is_disabler(exe)
   bashcompletions += ['fadvise']
 endif
 
+# XXX: HAVE_PIDFD_OPEN
 exe = executable(
   'waitpid',
   waitpid_sources,