Fix building when pidfd_open is available

On glibc2.36 pidfd_open was made available, but it needs an include
This commit is contained in:
Nyikos Zoltán 2022-08-10 19:56:59 +02:00 committed by afayaz-feral
parent 55b799e3df
commit 4934191b19

View File

@ -58,6 +58,8 @@ static int pidfd_open(pid_t pid, unsigned int flags)
{ {
return (int)syscall(__NR_pidfd_open, pid, flags); return (int)syscall(__NR_pidfd_open, pid, flags);
} }
#else
#include <sys/pidfd.h>
#endif #endif
/* pidfd functions */ /* pidfd functions */