Skip to content

Commit

Permalink
include: cleanup pidfd inckudes
Browse files Browse the repository at this point in the history
Signed-off-by: Karel Zak <kzak@redhat.com>
  • Loading branch information
karelzak committed Mar 10, 2020
1 parent d52786a commit 0a4035f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/pidfd-utils.h
Expand Up @@ -3,18 +3,18 @@

#if defined(__linux__)
# include <sys/syscall.h>
# if defined(SYS_pidfd_send_signal)
# if defined(SYS_pidfd_send_signal) && defined(SYS_pidfd_open)
# include <sys/types.h>

# 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)
{
return syscall(SYS_pidfd_send_signal, pidfd, sig, info, flags);
}
# 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);
Expand Down

0 comments on commit 0a4035f

Please sign in to comment.