summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--eval.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0a4d166af8..6c736919e5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,6 @@
-Wed Jan 27 14:23:36 2010 Nobuyoshi Nakada <[email protected]>
+Wed Jan 27 14:25:12 2010 Nobuyoshi Nakada <[email protected]>
+
+ * eval.c (thread_init): used only for setitimer or threaded.
* ext/dl/dl.c (c_parray): get rid of a deprecated function.
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)