]> 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)
committerKarel Zak <kzak@redhat.com>
Tue, 23 May 2023 10:31:23 +0000 (12:31 +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 dfdcdbdce8471498bb3d046e5778d460549f04ba..1f6158e7f76304fb7ee0c3089da5a0499f2524ad 100644 (file)
@@ -1856,6 +1856,7 @@ AC_ARG_ENABLE([waitpid],
 )
 UL_BUILD_INIT([waitpid])
 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([enosys], [check])
index 3783a5be982a29bc2bd274439eeda2311c5bf592..029f93cf4994eba0d67828a00c5acfb8e084aa00 100644 (file)
@@ -2848,6 +2848,7 @@ if not is_disabler(exe)
   bashcompletions += ['fadvise']
 endif
 
+# XXX: HAVE_PIDFD_OPEN
 exe = executable(
   'waitpid',
   waitpid_sources,