Fix build with kernel 3.4 headers.
PATCH 1/1 Fix build with kernel 3.4 headers.
From: Vinson Lee <[email protected]>
PR_SET_CHILD_SUBREAPER was added in kernel 3.4 but PR_SET_NO_NEW_PRIVS, PR_GET_NO_NEW_PRIVS, and PR_GET_TID_ADDRESS were added in kernel 3.5.
CC syscalls/prctl.osyscalls/prctl.c:33: error: ‘PR_SET_NO_NEW_PRIVS’ undeclared here (not in a function) syscalls/prctl.c:34: error: ‘PR_GET_NO_NEW_PRIVS’ undeclared here (not in a function) syscalls/prctl.c:34: error: ‘PR_GET_TID_ADDRESS’ undeclared here (not in a function)
Signed-off-by Vinson Lee <[email protected]>
--- include/compat.h | 3 +++ 1 file changed, 3 insertions(+)
include/compat.h +3 -0
@@ -275,6 +275,9 @@ enum {#ifndef PR_SET_CHILD_SUBREAPER #define PR_SET_CHILD_SUBREAPER 36#define PR_GET_CHILD_SUBREAPER 37 +#endif + +#ifndef PR_SET_NO_NEW_PRIVS #define PR_SET_NO_NEW_PRIVS 38#define PR_GET_NO_NEW_PRIVS 39#define PR_GET_TID_ADDRESS 40
Signature · 1 line
1.9.1