* [PATCH] Fix build with kernel 3.4 headers.
@ 2015-07-17 18:15 Vinson Lee
0 siblings, 0 replies; only message in thread
From: Vinson Lee @ 2015-07-17 18:15 UTC (permalink / raw)
To: trinity; +Cc: Vinson Lee
From: Vinson Lee <vlee@twitter.com>
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.o
syscalls/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 <vlee@twitter.com>
---
include/compat.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/compat.h b/include/compat.h
index 5451870..0e0f30e 100644
--- a/include/compat.h
+++ b/include/compat.h
@@ -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
--
1.9.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-07-17 18:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-17 18:15 [PATCH] Fix build with kernel 3.4 headers Vinson Lee
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.