소스 검색

Fix building when pidfd_open is available

On glibc2.36 pidfd_open was made available, but it needs an include
Nyikos Zoltán 2 년 전
부모
커밋
4934191b19
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      common/common-pidfds.c

+ 2 - 0
common/common-pidfds.c

@@ -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 */