From: Karel Zak Date: Tue, 10 Mar 2020 10:43:16 +0000 (+0100) Subject: include: cleanup pidfd inckudes X-Git-Tag: v2.36-rc1~184 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a4035ff2e4fd5b5ae0cf8f8665696c2aff53b75;p=thirdparty%2Futil-linux.git include: cleanup pidfd inckudes Signed-off-by: Karel Zak --- diff --git a/include/pidfd-utils.h b/include/pidfd-utils.h index 0baedd2c90..4a6c3a6044 100644 --- a/include/pidfd-utils.h +++ b/include/pidfd-utils.h @@ -3,10 +3,10 @@ #if defined(__linux__) # include -# if defined(SYS_pidfd_send_signal) +# if defined(SYS_pidfd_send_signal) && defined(SYS_pidfd_open) # include -# ifndef HAVE_PIDFD_OPEN +# ifndef HAVE_PIDFD_SEND_SIGNAL static inline int pidfd_send_signal(int pidfd, int sig, siginfo_t *info, unsigned int flags) { @@ -14,7 +14,7 @@ static inline int pidfd_send_signal(int pidfd, int sig, siginfo_t *info, } # endif -# ifndef HAVE_PIDFD_SEND_SIGNAL +# ifndef HAVE_PIDFD_OPEN static inline int pidfd_open(pid_t pid, unsigned int flags) { return syscall(SYS_pidfd_open, pid, flags);