summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/replace/replace.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/lib/replace/replace.h b/source3/lib/replace/replace.h
index e6ba68f9ad..eabff67cd4 100644
--- a/source3/lib/replace/replace.h
+++ b/source3/lib/replace/replace.h
@@ -325,7 +325,14 @@ char *rep_mkdtemp(char *template);
#define bool _Bool
#else
#define __bool_true_false_are_defined
-#define BOOL_DEFINED /* needed for <rpcsvc/yp_prot.h> not doing a redefine */
+/*
+ * to prevent <rpcsvc/yp_prot.h> from doing a redefine of 'bool'
+ *
+ * IRIX, HPUX, MacOS 10 and Solaris need BOOL_DEFINED
+ * Tru64 needs _BOOL_EXISTS
+ */
+#define BOOL_DEFINED
+#define _BOOL_EXISTS
typedef int bool;
#endif
#endif