From ecf2464eab009fa144d18222bc13c8780581fabd Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 22 May 2006 08:53:30 +0000 Subject: use rb_read_pending instead of rb_io_read_pending. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/socket/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/socket/socket.c b/ext/socket/socket.c index e7fb0bad7a..ffd28c764e 100644 --- a/ext/socket/socket.c +++ b/ext/socket/socket.c @@ -2768,7 +2768,7 @@ sock_recvfrom_nonblock(argc, argv, sock) buflen = NUM2INT(len); GetOpenFile(sock, fptr); - if (rb_io_read_pending(fptr)) { + if (rb_read_pending(fptr->f)) { rb_raise(rb_eIOError, "recv for buffered IO"); } fd = fileno(fptr->f); -- cgit v1.2.3