aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--THANKS.in1
-rw-r--r--plugins/common.h5
2 files changed, 6 insertions, 0 deletions
diff --git a/THANKS.in b/THANKS.in
index fa61ddb4..9fee0255 100644
--- a/THANKS.in
+++ b/THANKS.in
@@ -173,3 +173,4 @@ Hans Engelen
Rick Frey
Serhan Kiymaz
Gerhard Lausser
+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 {
};
#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,