diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-12 14:54:02 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-12 14:54:02 +0000 |
commit | b736c9b5dcdda56597a1b28bae11762f8042fee5 (patch) | |
tree | cef43a1a20c75f7b67068bec5438116902d30fee /ext | |
parent | abd94c3376f9060464cc4e948071002d0f9d17ac (diff) | |
download | ruby-b736c9b5dcdda56597a1b28bae11762f8042fee5.tar.gz |
* ext/socket/init.c (rsock_init_sock): conditionally used variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/socket/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/init.c b/ext/socket/init.c index ffd1c72895..ebc9031150 100644 --- a/ext/socket/init.c +++ b/ext/socket/init.c @@ -43,9 +43,9 @@ VALUE rsock_init_sock(VALUE sock, int fd) { rb_io_t *fp; +#ifndef _WIN32 struct stat sbuf; -#ifndef _WIN32 if (fstat(fd, &sbuf) < 0) rb_sys_fail(0); if (!S_ISSOCK(sbuf.st_mode)) |