From: Charlie Savage Date: 2010-04-08T13:51:42+09:00 Subject: [ruby-core:29314] [Bug #3092] IO Broken with Latest Windows Issue #3092 has been updated by Charlie Savage. Hi Usaku, No, the changes don't fix the warnings. For example: cl -nologo -MDd -Zi -W2 -wd4996 -Od -Zm600 -RTC1 -DRUBY_EXPORT -I. -I.ext/include/i386-mswin32_100 -I./include -I. -I./missing -Fodir.obj -c -Tcdir.c dir.c C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\errno.h(92) : warning C4005: 'EADDRINUSE' : macro redefinition c:\Development\src\ruby\include\ruby/win32.h(444) : see previous definition of 'EADDRINUSE' Line 443, win32.h: #ifndef EADDRINUSE # define EADDRINUSE WSAEADDRINUSE #endif EADDRINUSE is not yet defined, so it gets set to WSAEADDRINUSE. Then *after* this, errno.h is included and overrides the value leading to the error message. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/3092 ---------------------------------------- http://redmine.ruby-lang.org