ruby-changes:17458
From: nobu <ko1@a...>
Date: Tue, 12 Oct 2010 23:54:11 +0900 (JST)
Subject: [ruby-changes:17458] Ruby:r29464 (trunk): * ext/socket/init.c (rsock_init_sock): conditionally used variable.
nobu 2010-10-12 23:54:02 +0900 (Tue, 12 Oct 2010) New Revision: 29464 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29464 Log: * ext/socket/init.c (rsock_init_sock): conditionally used variable. Modified files: trunk/ext/socket/init.c Index: ext/socket/init.c =================================================================== --- ext/socket/init.c (revision 29463) +++ ext/socket/init.c (revision 29464) @@ -43,9 +43,9 @@ 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)) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/