From: Vinson Lee <vlee@twopensource.com>
To: trinity@vger.kernel.org
Cc: Vinson Lee <vlee@twitter.com>
Subject: [PATCH] Fix build with kernel 3.4 headers.
Date: Fri, 17 Jul 2015 11:15:41 -0700 [thread overview]
Message-ID: <1437156941-5862-1-git-send-email-vlee@twopensource.com> (raw)
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
reply other threads:[~2015-07-17 18:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1437156941-5862-1-git-send-email-vlee@twopensource.com \
--to=vlee@twopensource.com \
--cc=trinity@vger.kernel.org \
--cc=vlee@twitter.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).