]> granicus.if.org Git - procps-ng/commit
fix pifd_open check
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Thu, 3 Nov 2022 17:24:53 +0000 (18:24 +0100)
committerCraig Small <csmall@dropbear.xyz>
Wed, 9 Nov 2022 10:15:05 +0000 (10:15 +0000)
commit17f94796a9b3c4f1ff28829107a82107dcb362b4
tree9860c6c03f4bba8c907bc3c5124d3b70f393d820
parentd99c213af9c4a28c9232fe186fd0b10ea9b063f7
fix pifd_open check

Replace AC_CHECK_FUNC by AC_CHECK_FUNCS otherwise HAVE_PIDFD_OPEN will
never be defined resulting in the following build failure if pidfd_open
is available but __NR_pidfd_open is not available:

pgrep.c: In function 'pidfd_open':
pgrep.c:748:17: error: '__NR_pidfd_open' undeclared (first use in this function); did you mean 'pidfd_open'?
  748 |  return syscall(__NR_pidfd_open, pid, flags);
      |                 ^~~~~~~~~~~~~~~
      |                 pidfd_open

This build failure is raised since the addition of pwait in version
3.3.17 and
https://gitlab.com/procps-ng/procps/-/commit/c8384e682c1cfb3b2dc797e0f8a3cbaaccf7a3da

Fixes:
 - http://autobuild.buildroot.org/results/f23a5156e641b2ebdd673973dec0f9c87760c688

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
configure.ac
src/pgrep.c