Code

control: Updated standards-version to 3.9.5 -- no changes.
[pkg-rrdtool.git] / src / rrd_config_bottom.h
index ec191b9e0f7ced35c116061c9a02b9be474d7ef9..c48a06f1a76f7532b6808802416d7af8f2687765 100644 (file)
@@ -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  */