X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Frrd_config_bottom.h;h=c48a06f1a76f7532b6808802416d7af8f2687765;hb=HEAD;hp=ec191b9e0f7ced35c116061c9a02b9be474d7ef9;hpb=be3cca08c4031f46d4e2b872ab0eb825c5b69b4e;p=pkg-rrdtool.git diff --git a/src/rrd_config_bottom.h b/src/rrd_config_bottom.h index ec191b9..c48a06f 100644 --- a/src/rrd_config_bottom.h +++ b/src/rrd_config_bottom.h @@ -170,12 +170,17 @@ char *strchr (), *strrchr (); #endif /* for Solaris */ -#if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS)) -# define HAVE_ISINF 1 -# ifdef isinf +#if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS)) +# define HAVE_ISINF 1 +# ifdef isinf # undef isinf -# endif -# define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF) +# endif +# define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF) +#endif + +/* solaris 8/9 has rint but not round */ +#if (! defined(HAVE_ROUND) && defined(HAVE_RINT)) +# define round rint #endif /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */