Skip to contentSkip to conversation

fix build prctl.h header on RHEL6.7

PATCH New Hangbin Liu 1 participant 1 message Aug 31, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix build prctl.h header on RHEL6.7

latest RHEL6.7 kernel headers only defined PR_SET/GET_NO_NEW_PRIVS, which lead to 'PR_GET_TID_ADDRESS' undeclared build error.

---
 include/compat.h | 3 +++
 1 file changed, 3 insertions(+)
include/compat.h +3 -0
index 0e0f30e..1f1ad9c 100644
@@ -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
 
Signature · 1 line
1.9.3