From 14a5ffcdba1cec840d96cb59b07f30856765bca3 Mon Sep 17 00:00:00 2001 From: niki Date: Sat, 17 Dec 2005 03:09:11 +0000 Subject: [PATCH] cleanup configure headers --- src/collectd.h | 39 ++++++++++++++++----------------------- 1 file changed, 16 insertions(+), 23 deletions(-) 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 -- 2.30.2