From 0d7f6a89b35e837f745805b68431bc37d3f6223b Mon Sep 17 00:00:00 2001 From: niki Date: Thu, 1 Dec 2005 09:45:47 +0000 Subject: [PATCH] Adding a couple of #if HAVE_ as described in info autoconf (Default Includes). --- src/collectd.h | 43 ++++++++++++++++++++++++++++++++++++------- 1 file changed, 36 insertions(+), 7 deletions(-) diff --git a/src/collectd.h b/src/collectd.h index eb07756a..31395a54 100644 --- a/src/collectd.h +++ b/src/collectd.h @@ -1,22 +1,51 @@ #ifndef COLLECTD_H #define COLLECTD_H -#include +#if HAVE_CONFIG_H +# include "config.h" +#endif + #include -#include -#include -#include +#if HAVE_SYS_TYPES_H +# include +#endif +#if HAVE_SYS_STAT_H +# include +#endif +#if STDC_HEADERS +#include +#include +#else +# if HAVE_STDLIB_H +# include +# endif +#endif +#if HAVE_STRING_H +# if !STDC_HEADERS && HAVE_MEMORY_H +# include +# endif +# include +#endif +#if HAVE_STRINGS_H +# include +#endif +#if HAVE_INTTYPES_H +# include +#endif +#if HAVE_STDINT_H +# include +#endif +#if HAVE_UNISTD_H +# include +#endif #include #include -#include #include #include #include #include #include -#include "config.h" - #ifndef HAVE_RRD_H #undef HAVE_LIBRRD #endif -- 2.11.0