trinity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fix build prctl.h header on RHEL6.7
@ 2015-08-31  9:18 Hangbin Liu
  0 siblings, 0 replies; only message in thread
From: Hangbin Liu @ 2015-08-31  9:18 UTC (permalink / raw)
  To: Trinity; +Cc: Hangbin Liu

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-08-31  9:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-31  9:18 [PATCH] fix build prctl.h header on RHEL6.7 Hangbin Liu

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).