From: Hangbin Liu <liuhangbin@gmail.com>
To: Trinity <trinity@vger.kernel.org>
Cc: Hangbin Liu <liuhangbin@gmail.com>
Subject: [PATCH] fix build prctl.h header on RHEL6.7
Date: Mon, 31 Aug 2015 17:18:37 +0800 [thread overview]
Message-ID: <1441012717-20482-1-git-send-email-liuhangbin@gmail.com> (raw)
latest RHEL6.7 kernel headers only defined PR_SET/GET_NO_NEW_PRIVS, which
lead to 'PR_GET_TID_ADDRESS' undeclared build error.
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
---
include/compat.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/compat.h b/include/compat.h
index 0e0f30e..1f1ad9c 100644
--- a/include/compat.h
+++ b/include/compat.h
@@ -280,6 +280,9 @@ enum {
#ifndef PR_SET_NO_NEW_PRIVS
#define PR_SET_NO_NEW_PRIVS 38
#define PR_GET_NO_NEW_PRIVS 39
+#endif
+
+#ifndef PR_GET_TID_ADDRESS
#define PR_GET_TID_ADDRESS 40
#endif
--
1.9.3
reply other threads:[~2015-08-31 9:18 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=1441012717-20482-1-git-send-email-liuhangbin@gmail.com \
--to=liuhangbin@gmail.com \
--cc=trinity@vger.kernel.org \
/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 NNTP newsgroup(s).