summaryrefslogtreecommitdiff
path: root/source4/lib/replace/system/capability.h
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/replace/system/capability.h')
-rw-r--r--source4/lib/replace/system/capability.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/lib/replace/system/capability.h b/source4/lib/replace/system/capability.h
index 59b5845721..a7b78f0275 100644
--- a/source4/lib/replace/system/capability.h
+++ b/source4/lib/replace/system/capability.h
@@ -33,8 +33,17 @@
#define BROKEN_REDHAT_7_STATFS_WORKAROUND
#endif
+#if defined(BROKEN_RHEL5_SYS_CAP_HEADER) && !defined(_LINUX_TYPES_H)
+#define BROKEN_RHEL5_SYS_CAP_HEADER_WORKAROUND
+#endif
+
#include <sys/capability.h>
+#ifdef BROKEN_RHEL5_SYS_CAP_HEADER_WORKAROUND
+#undef _LINUX_TYPES_H
+#undef BROKEN_RHEL5_SYS_CAP_HEADER_WORKAROUND
+#endif
+
#ifdef BROKEN_REDHAT_7_STATFS_WORKAROUND
#undef _PPC_STATFS_H
#undef _I386_STATFS_H