summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-03-08 00:23:14 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-03-08 00:23:14 +0000
commitc49418522dec35ce043e0a9736fae32217002384 (patch)
treeec395914e069f04d77a08f9af7fb8bbc229227e0 /thread.c
parent835f040be29b1a32f93428a6a90de7978b7c2779 (diff)
* compile.c: iseq_compile -> rb_iseq_compile.
* iseq.c: ditto. * intern.h: provide function prototype of Init_jump. * eval_jump.h (Init_jump): declare function type. * thread.c: platform-dependent functions should be surrounded by #ifdef. * iseq.c (iseq_data_to_ary): remove unused variable. * compile.c (set_arguments): ditto. * thread.c (set_unblock_function): ditto. * thread_pthread.ci: reduce printf warning. * vm_dump.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index 9ef165673f..ab1863f1b1 100644
--- a/thread.c
+++ b/thread.c
@@ -191,7 +191,6 @@ static rb_unblock_function_t *
set_unblock_function(rb_thread_t *th, rb_unblock_function_t *func)
{
rb_unblock_function_t *oldfunc;
- int interrupted;
check_ints:
RUBY_VM_CHECK_INTS(); /* check signal or so */
@@ -1652,6 +1651,7 @@ rb_fd_copy(rb_fdset_t *dst, const fd_set *src, int max)
#endif
+#if defined(__CYGWIN__) || defined(_WIN32)
static long
cmp_tv(const struct timeval *a, const struct timeval *b)
{
@@ -1673,6 +1673,7 @@ subst(struct timeval *rest, const struct timeval *wait)
rest->tv_usec -= wait->tv_usec;
return 1;
}
+#endif
static int
do_select(int n, fd_set *read, fd_set *write, fd_set *except,