From 7c69ccaee2baba7d1e8347b8b9e1f45a18551a6c Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Wed, 7 Dec 2005 15:10:27 +0000 Subject: No floorf on Solaris 9 (Jon Vandegrift - 1374705) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1295 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/common.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugins/common.h') diff --git a/plugins/common.h b/plugins/common.h index b4699cef..7438e403 100644 --- a/plugins/common.h +++ b/plugins/common.h @@ -191,6 +191,11 @@ enum { }; #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, -- cgit v1.2.3