summaryrefslogtreecommitdiffstats
path: root/src/platform-posix.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform-posix.cc')
-rw-r--r--src/platform-posix.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/platform-posix.cc b/src/platform-posix.cc
index 1e1245c5..41e0e64f 100644
--- a/src/platform-posix.cc
+++ b/src/platform-posix.cc
@@ -27,7 +27,7 @@
// Platform specific code for POSIX goes here. This is not a platform on its
// own but contains the parts which are the same across POSIX platforms Linux,
-// Mac OS and FreeBSD.
+// Mac OS, FreeBSD and OpenBSD.
#include <unistd.h>
#include <errno.h>
@@ -61,6 +61,13 @@ double modulo(double x, double y) {
return fmod(x, y);
}
+
+double OS::nan_value() {
+ // NAN from math.h is defined in C99 and not in POSIX.
+ return NAN;
+}
+
+
// ----------------------------------------------------------------------------
// POSIX date/time support.
//