summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-01 09:42:38 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-01 09:42:38 +0000
commit0b0db73683a163b62556e3c39320b350642e3191 (patch)
tree816b0f807ceea1627cfb090be0147bb619a12340 /numeric.c
parent42fc13311f0102f5668ebb837bd5f63c812e7b4b (diff)
2000-05-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_4@678 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 b21b17407e..868fb99c29 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__ < 4
#include <floatingpoint.h>
#endif
@@ -1410,7 +1410,7 @@ fix_zero_p(num)
void
Init_Numeric()
{
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) && __FreeBSD__ < 4
/* allow divide by zero -- Inf */
fpsetmask(fpgetmask() & ~(FP_X_DZ|FP_X_INV|FP_X_OFL));
#endif