Skip to content

Commit

Permalink
Fix building when pidfd_open is available
Browse files Browse the repository at this point in the history
On glibc2.36 pidfd_open was made available, but it needs an include
  • Loading branch information
nyz93 authored and afayaz-feral committed Aug 12, 2022
1 parent 55b799e commit 4934191
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/common-pidfds.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ static int pidfd_open(pid_t pid, unsigned int flags)
{
return (int)syscall(__NR_pidfd_open, pid, flags);
}
#else
#include <sys/pidfd.h>
#endif

/* pidfd functions */
Expand Down

0 comments on commit 4934191

Please sign in to comment.