From 87e4ad0a236217fb27c3a0a22a1c3b4937f29771 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 26 Apr 2008 09:36:35 +0000 Subject: * 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 --- io.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'io.c') 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 && -- cgit v1.2.3