projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
utils_vl_lookup: Fixed a race when creating user objects.
[collectd.git]
/
src
/
collectd.h
diff --git
a/src/collectd.h
b/src/collectd.h
index
8dd0f42
..
7cb405c
100644
(file)
--- a/
src/collectd.h
+++ b/
src/collectd.h
@@
-97,6
+97,12
@@
# define assert(...) /* nop */
#endif
# 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 <math.h>
/* #endif NAN_STATIC_DEFAULT*/
#if NAN_STATIC_DEFAULT
# include <math.h>
/* #endif NAN_STATIC_DEFAULT*/
@@
-252,7
+258,9
@@
# define COLLECTD_GRP_NAME "collectd"
#endif
# define COLLECTD_GRP_NAME "collectd"
#endif
-#define STATIC_ARRAY_LEN(array) (sizeof (array) / sizeof ((array)[0]))
+#ifndef COLLECTD_DEFAULT_INTERVAL
+# define COLLECTD_DEFAULT_INTERVAL 10.0
+#endif
/* Remove GNU specific __attribute__ settings when using another compiler */
#if !__GNUC__
/* Remove GNU specific __attribute__ settings when using another compiler */
#if !__GNUC__