diff --git a/src/collectd.h b/src/collectd.h
index 24e5add3c4ceeb807668851c88900c9e002505b2..16bde1cf2a19e4185a889033bcfc12caf3fa656d 100644 (file)
--- a/src/collectd.h
+++ b/src/collectd.h
#endif
#if HAVE_STDBOOL_H
# include <stdbool.h>
#endif
#if HAVE_STDBOOL_H
# include <stdbool.h>
+#else
+# ifndef HAVE__BOOL
+# ifdef __cplusplus
+typedef bool _Bool;
+# else
+# define _Bool signed char
+# endif
+# endif
+# define bool _Bool
+# define false 0
+# define true 1
+# define __bool_true_false_are_defined 1
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
#if HAVE_UNISTD_H
# include <unistd.h>