diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-26 09:36:35 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-26 09:36:35 +0000 |
| commit | 5cc93174119d2d37d2fa188fb33a329fe4552267 (patch) | |
| tree | bbde5fbb582f4881a8cb77d12fbf3e790e14edd5 /io.c | |
| parent | 761a8d8ea50d27fe9e11ad458a1b9a56626665bb (diff) | |
| download | ruby-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 && |
