summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-14 03:39:20 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-14 03:39:20 +0000
commit81d5b6b07d678cbe433a78ac98ba5b80aada14fd (patch)
tree5093211586d033dfb84579f52d558070aaef56a6
parentaff7efb33ead9e4bc91072d90f89af0f558fe401 (diff)
downloadruby-81d5b6b07d678cbe433a78ac98ba5b80aada14fd.tar.gz
ruby-81d5b6b07d678cbe433a78ac98ba5b80aada14fd.tar.xz
ruby-81d5b6b07d678cbe433a78ac98ba5b80aada14fd.zip
* io.c (rb_io_wait_readable, rb_io_wait_writable): need rb_fd_ptr.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--io.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index d6b7353f6..ac1e26836 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,6 @@
-Wed Jan 14 12:38:02 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed Jan 14 12:39:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_wait_readable, rb_io_wait_writable): need rb_fd_ptr.
* io.c (appendline): reformed.
diff --git a/io.c b/io.c
index 30d44cd11..5b04dda57 100644
--- a/io.c
+++ b/io.c
@@ -630,7 +630,7 @@ rb_io_wait_readable(int f)
rb_ensure(wait_readable, (VALUE)&rfds,
(VALUE (*)(VALUE))rb_fd_term, (VALUE)&rfds);
#else
- rb_thread_select(f + 1, &rfds, NULL, NULL, NULL);
+ rb_thread_select(f + 1, rb_fd_ptr(&rfds), NULL, NULL, NULL);
#endif
return Qtrue;
@@ -675,7 +675,7 @@ rb_io_wait_writable(int f)
rb_ensure(wait_writable, (VALUE)&wfds,
(VALUE (*)(VALUE))rb_fd_term, (VALUE)&wfds);
#else
- rb_thread_select(f + 1, NULL, &wfds, NULL, NULL);
+ rb_thread_select(f + 1, NULL, rb_fd_ptr(&wfds), NULL, NULL);
#endif
return Qtrue;