From: niki Date: Sat, 17 Dec 2005 03:09:11 +0000 (+0000) Subject: cleanup configure headers X-Git-Tag: collectd-3.6.0~46 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=14a5ffcdba1cec840d96cb59b07f30856765bca3;p=collectd.git cleanup configure headers --- diff --git a/src/collectd.h b/src/collectd.h index 7f163bd5..922aebf1 100644 --- a/src/collectd.h +++ b/src/collectd.h @@ -35,8 +35,8 @@ # include #endif #if STDC_HEADERS -#include -#include +# include +# include #else # if HAVE_STDLIB_H # include @@ -118,6 +118,9 @@ #if HAVE_CTYPE_H # include #endif +#if HAVE_SYS_PARAM_H +# include +#endif #if HAVE_SYSLOG # define syslog(...) syslog(__VA_ARGS__) @@ -137,31 +140,21 @@ # define closelog(...) /**/ #endif -#ifndef HAVE_RRD_H -#undef HAVE_LIBRRD +#if HAVE_KSTAT_H +# include #endif -#ifdef HAVE_LIBRRD -#include -#endif /* HAVE_LIBRRD */ - -/* Won't work without the header file */ -#ifndef HAVE_KSTAT_H -#undef HAVE_LIBKSTAT +#if HAVE_RRD_H +# include #endif - -#ifdef HAVE_LIBKSTAT -#include -#include -#endif /* HAVE_LIBKSTAT */ - -/* Won't work without the header file */ -#ifndef HAVE_STATGRAB_H -#undef HAVE_LIBSTATGRAB +#if HAVE_PTH_H +# include #endif - -#ifdef HAVE_LIBSTATGRAB -#include +#if HAVE_STATGRAB_H +# include +#endif +#if HAVE_SENSORS_SENSORS_H +# include #endif #ifndef PACKAGE_NAME