summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-27 05:25:13 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-27 05:25:13 +0000
commitc0497c5b43f7d091ba8ed5c7a1995e204398a7cd (patch)
tree383cefb97c0ed73b10ef78625dc75526420889fb /eval.c
parent185aca62a4a1bc66021112750ab9b6b652829d8e (diff)
* eval.c (thread_init): used only for setitimer or threaded.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index cea34bf8b2..19b753bbc6 100644
--- a/eval.c
+++ b/eval.c
@@ -12417,7 +12417,9 @@ rb_thread_alloc(klass)
return th;
}
+#if defined(HAVE_SETITIMER) || defined(_THREAD_SAFE)
static int thread_init;
+#endif
#if defined(POSIX_SIGNAL)
#define CATCH_VTALRM() posix_signal(SIGVTALRM, catch_timer)