summaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-26 09:36:35 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-26 09:36:35 +0000
commit5cc93174119d2d37d2fa188fb33a329fe4552267 (patch)
treebbde5fbb582f4881a8cb77d12fbf3e790e14edd5 /io.c
parent761a8d8ea50d27fe9e11ad458a1b9a56626665bb (diff)
downloadruby-5cc93174119d2d37d2fa188fb33a329fe4552267.tar.gz
ruby-5cc93174119d2d37d2fa188fb33a329fe4552267.tar.xz
ruby-5cc93174119d2d37d2fa188fb33a329fe4552267.zip
* io.c, signal.c, thread.c, thread_win32.c, include/ruby/intern.h:
suppress warnings. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/io.c b/io.c
index a4382445a..f84161fb3 100644
--- a/io.c
+++ b/io.c
@@ -488,7 +488,10 @@ io_alloc(VALUE klass)
static int
wsplit_p(rb_io_t *fptr)
{
+#if defined(HAVE_FCNTL) && defined(F_GETFL) && defined(O_NONBLOCK)
int r;
+#endif
+
if (!(fptr->mode & FMODE_WSPLIT_INITIALIZED)) {
struct stat buf;
if (fstat(fptr->fd, &buf) == 0 &&