summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-04-18 04:56:28 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-04-18 04:56:28 +0000
commitc8f58f2a16c88603abe56c34b346cad5817975b3 (patch)
tree478cb8d5eea2295e24a69fa459c9a31af659566b /numeric.c
parentcd09e4abd8f8ba814e093bfad9519fc7c05f03d9 (diff)
freebsd floating point
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/numeric.c b/numeric.c
index 447817c625..d308afef47 100644
--- a/numeric.c
+++ b/numeric.c
@@ -13,7 +13,7 @@
#include "ruby.h"
#include <math.h>
#include <stdio.h>
-#ifdef __FreeBSD__
+#if defined(FreeBSD) && __FreeBSD_version < 400012
#include <floatingpoint.h>
#endif
@@ -1451,7 +1451,7 @@ fix_zero_p(num)
void
Init_Numeric()
{
-#ifdef __FreeBSD__
+#if defined(FreeBSD) && __FreeBSD_version < 400012
/* allow divide by zero -- Inf */
fpsetmask(fpgetmask() & ~(FP_X_DZ|FP_X_INV|FP_X_OFL));
#endif