summaryrefslogtreecommitdiff
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
commit87e4ad0a236217fb27c3a0a22a1c3b4937f29771 (patch)
treebbde5fbb582f4881a8cb77d12fbf3e790e14edd5 /io.c
parentc7451eb7255a534182caa0f2c27beda0b140f741 (diff)
* io.c, signal.c, thread.c, thread_win32.c, include/ruby/intern.h:
suppress warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/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 a4382445a0..f84161fb3d 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 &&