mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-27 17:16:40 -04:00
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
This commit is contained in:
parent
ec6d0db61c
commit
7c69ccaee2
2 changed files with 6 additions and 0 deletions
|
|
@ -173,3 +173,4 @@ Hans Engelen
|
|||
Rick Frey
|
||||
Serhan Kiymaz
|
||||
Gerhard Lausser
|
||||
Jon Vandegrift
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue