mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
abd94c3376
commit
b736c9b5dc
1 changed files with 1 additions and 1 deletions
|
@ -43,9 +43,9 @@ VALUE
|
||||||
rsock_init_sock(VALUE sock, int fd)
|
rsock_init_sock(VALUE sock, int fd)
|
||||||
{
|
{
|
||||||
rb_io_t *fp;
|
rb_io_t *fp;
|
||||||
|
#ifndef _WIN32
|
||||||
struct stat sbuf;
|
struct stat sbuf;
|
||||||
|
|
||||||
#ifndef _WIN32
|
|
||||||
if (fstat(fd, &sbuf) < 0)
|
if (fstat(fd, &sbuf) < 0)
|
||||||
rb_sys_fail(0);
|
rb_sys_fail(0);
|
||||||
if (!S_ISSOCK(sbuf.st_mode))
|
if (!S_ISSOCK(sbuf.st_mode))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue