summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-02-04 13:54:53 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-02-04 13:54:53 +0000
commit914e4d244fee32fa145d186f8e0a0e069085a298 (patch)
tree03c68348baf4817bb437c252b77ce7aa8ea26ecb /eval.c
parent49a2b019f645a161d4f5c2a0b0075eedd95df9fd (diff)
* eval.c: apply the FreeBSD getcontext/setcontext workaround
only before FreeBSD 7-CURRENT. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 7926f59829..6f47130ac4 100644
--- a/eval.c
+++ b/eval.c
@@ -179,7 +179,7 @@ int function_call_may_return_twice_false_2 = 0;
(function_call_may_return_twice_false_2 ? \
setjmp(function_call_may_return_twice_jmp_buf) : \
0)
-# elif defined(__FreeBSD__)
+# elif defined(__FreeBSD__) && __FreeBSD__ < 7
/*
* workaround for FreeBSD/i386 getcontext/setcontext bug.
* clear the carry flag by (0 ? ... : ...).