diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2005-12-07 15:10:27 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2005-12-07 15:10:27 +0000 |
commit | 7c69ccaee2baba7d1e8347b8b9e1f45a18551a6c (patch) | |
tree | b75006f2ee1b79996b099272460cff5467237fc7 | |
parent | ec6d0db61c33e65a1c3e414b07638a55022dfbf6 (diff) | |
download | monitoring-plugins-7c69ccaee2baba7d1e8347b8b9e1f45a18551a6c.tar.gz |
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
-rw-r--r-- | THANKS.in | 1 | ||||
-rw-r--r-- | plugins/common.h | 5 |
2 files changed, 6 insertions, 0 deletions
@@ -173,3 +173,4 @@ Hans Engelen | |||
173 | Rick Frey | 173 | Rick Frey |
174 | Serhan Kiymaz | 174 | Serhan Kiymaz |
175 | Gerhard Lausser | 175 | Gerhard Lausser |
176 | Jon Vandegrift | ||
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 { | |||
191 | }; | 191 | }; |
192 | #endif | 192 | #endif |
193 | 193 | ||
194 | /* Solaris does not have floorf, but floor works. Should probably be in configure */ | ||
195 | #if defined(__sun) || defined(__sun__) | ||
196 | static inline float floorf (float x) { return floor(x); } | ||
197 | #endif | ||
198 | |||
194 | enum { | 199 | enum { |
195 | STATE_OK, | 200 | STATE_OK, |
196 | STATE_WARNING, | 201 | STATE_WARNING, |