summaryrefslogtreecommitdiff
path: root/source4/lib/replace
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2007-12-03 16:32:28 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:47:30 +0100
commitb08a82de587afdd561d55580957fec7cbeb2e43f (patch)
tree810b0c936f556db7cac87613eb76cac07528989e /source4/lib/replace
parent9e367b13d94770f652cb096595722b17d77ab7b4 (diff)
downloadsamba-b08a82de587afdd561d55580957fec7cbeb2e43f.tar.gz
samba-b08a82de587afdd561d55580957fec7cbeb2e43f.tar.bz2
samba-b08a82de587afdd561d55580957fec7cbeb2e43f.zip
r26254: Add check for PPC statfs.h to workaround for broken capability.h.
Synced from Samba3. Michael (This used to be commit dfdfac2b57ecbca8bddece846f5c2103a518e34d)
Diffstat (limited to 'source4/lib/replace')
-rw-r--r--source4/lib/replace/system/capability.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/lib/replace/system/capability.h b/source4/lib/replace/system/capability.h
index 4fe7c8d51b..59b5845721 100644
--- a/source4/lib/replace/system/capability.h
+++ b/source4/lib/replace/system/capability.h
@@ -27,14 +27,16 @@
#ifdef HAVE_SYS_CAPABILITY_H
-#if defined(BROKEN_REDHAT_7_SYSTEM_HEADERS) && !defined(_I386_STATFS_H)
+#if defined(BROKEN_REDHAT_7_SYSTEM_HEADERS) && !defined(_I386_STATFS_H) && !defined(_PPC_STATFS_H)
#define _I386_STATFS_H
+#define _PPC_STATFS_H
#define BROKEN_REDHAT_7_STATFS_WORKAROUND
#endif
#include <sys/capability.h>
#ifdef BROKEN_REDHAT_7_STATFS_WORKAROUND
+#undef _PPC_STATFS_H
#undef _I386_STATFS_H
#undef BROKEN_REDHAT_7_STATFS_WORKAROUND
#endif