X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fdaemon%2Fcollectd.h;h=0558aa400696183a42e9bac546b56e73e019656c;hp=38ffd0f61e55726d8487af2f37f4057559293ca4;hb=da11ce02eb202b3e01d3e2d1b40f248a84430973;hpb=446138394bb95c49d0e05ea440fbf63aefe84bab diff --git a/src/daemon/collectd.h b/src/daemon/collectd.h index 38ffd0f6..0558aa40 100644 --- a/src/daemon/collectd.h +++ b/src/daemon/collectd.h @@ -186,10 +186,6 @@ #include #endif -#if HAVE_KSTAT_H -#include -#endif - #ifndef PACKAGE_NAME #define PACKAGE_NAME "collectd" #endif @@ -240,10 +236,8 @@ /* Only enable __attribute__() for compilers known to support it. */ #if !defined(__clang__) && !defined(__GNUC__) -#if !defined(__attribute__) #define __attribute__(x) /**/ #endif -#endif #if defined(COLLECT_DEBUG) && COLLECT_DEBUG && defined(__GNUC__) && __GNUC__ #undef strcpy @@ -269,11 +263,6 @@ #define GAUGE_FORMAT "%.15g" #endif -/* Type for time as used by "utils_time.h" */ -typedef uint64_t cdtime_t; - -extern char hostname_g[]; -extern cdtime_t interval_g; -extern int timeout_g; +#include "globals.h" #endif /* COLLECTD_H */