subproc: check for __NR_clone3

This commit is contained in:
nick black 2020-06-28 22:19:41 -04:00
parent 419dc1efb6
commit dda6d2f596
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -11,8 +11,7 @@
#include <linux/wait.h> #include <linux/wait.h>
#include <asm/unistd.h> #include <asm/unistd.h>
#include <linux/sched.h> #include <linux/sched.h>
#ifndef CLONE_CLEAR_SIGHAND // FIXME introduced in linux 5.5 #if (defined(__NR_clone3) && defined(P_PIDFD) && defined(CLONE_CLEAR_SIGHAND))
#define CLONE_CLEAR_SIGHAND 0x100000000ULL
#endif #endif
#define USING_PIDFD #define USING_PIDFD
#endif #endif