[Nagiosplug-checkins] nagiosplug/plugins common.h,1.17,1.18
Ton Voon
tonvoon at users.sourceforge.net
Wed Dec 7 07:12:43 CET 2005
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16837/plugins
Modified Files:
common.h
Log Message:
No floorf on Solaris 9 (Jon Vandegrift - 1374705)
Index: common.h
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/common.h,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- common.h 31 Oct 2005 20:03:19 -0000 1.17
+++ common.h 7 Dec 2005 15:10:27 -0000 1.18
@@ -191,6 +191,11 @@
};
#endif
+/* Solaris does not have floorf, but floor works. Should probably be in configure */
+#if defined(__sun) || defined(__sun__)
+static inline float floorf (float x) { return floor(x); }
+#endif
+
enum {
STATE_OK,
STATE_WARNING,
More information about the Commits
mailing list