From 5f2db377613d8f9d586fcadad706345af1afdc37 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sun, 27 Mar 2011 11:58:40 -0700 Subject: [PATCH] src/collectd.h: Define "_Bool" to "int" if the C compiler doesn't know the type. --- src/collectd.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/collectd.h b/src/collectd.h index 8dd0f426..4079ad1f 100644 --- a/src/collectd.h +++ b/src/collectd.h @@ -97,6 +97,12 @@ # define assert(...) /* nop */ #endif +#if !defined(HAVE__BOOL) || !HAVE__BOOL +typedef int _Bool; +# undef HAVE__BOOL +# define HAVE__BOOL 1 +#endif + #if NAN_STATIC_DEFAULT # include /* #endif NAN_STATIC_DEFAULT*/ -- 2.11.0