X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_tool.h;h=6663c56e501ae2d6c3af021e063ecc58f6f207ea;hb=cd5224435747949630ffdd2486442e05a621c670;hp=09cda43d97888e3c76564ad4d720fcf5aab352e4;hpb=fbe390e15d3484315efe5802577249c8959e3556;p=rrdtool.git diff --git a/src/rrd_tool.h b/src/rrd_tool.h index 09cda43..6663c56 100644 --- a/src/rrd_tool.h +++ b/src/rrd_tool.h @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.2.21 Copyright by Tobi Oetiker, 1997-2007 + * RRDtool 1.2.23 Copyright by Tobi Oetiker, 1997-2007 ***************************************************************************** * rrd_tool.h Common Header File *****************************************************************************/ @@ -24,12 +24,11 @@ extern "C" { #ifdef MUST_DISABLE_FPMASK #include #endif - + #include #include #include #include -#include #include #if HAVE_SYS_PARAM_H @@ -72,16 +71,26 @@ extern "C" { # include #endif - #if HAVE_UNISTD_H # include #endif -#if HAVE_SYS_TIME_H + +#if TIME_WITH_SYS_TIME # include +# include +#else +# if HAVE_SYS_TIME_H +# include +# else +# include +# endif #endif + #if HAVE_SYS_TIMES_H # include #endif + + #if HAVE_SYS_RESOURCE_H # include #if (defined(__svr4__) && defined(__sun__)) @@ -108,7 +117,7 @@ char *strtok_r(char *str, const char *sep, char **last); #else /* unix-only includes */ -#ifndef isnan +#if !defined isnan && !defined HAVE_ISNAN int isnan(double value); #endif