From: Roger Pack Date: 2010-02-19T04:45:13+09:00 Subject: [ruby-core:28237] [Bug #2760] unable to cross-compile win32.c Bug #2760: unable to cross-compile win32.c http://redmine.ruby-lang.org/issues/show/2760 Author: Roger Pack Status: Open, Priority: Normal ruby -v: Revision: 26711 :~/ruby_trunk$ gcc win32/win32.c 2>&1 | grep lvalue win32/win32.c:4894: error: lvalue required as left operand of assignment win32/win32.c:5016: error: lvalue required as left operand of assignment This seems to help: Index: win32/win32.c =================================================================== --- win32/win32.c (revision 26711) +++ win32/win32.c (working copy) @@ -4891,7 +4891,7 @@ } if (pol) { - wait = rb_w32_wait_events_blocking(&ol.hEvent, 1, INFINITE); + wait = (DWORD) rb_w32_wait_events_blocking(&ol.hEvent, 1, INFINITE); if (wait != WAIT_OBJECT_0) { if (wait == WAIT_OBJECT_0 + 1) errno = EINTR; @@ -5013,7 +5013,7 @@ } if (pol) { - wait = rb_w32_wait_events_blocking(&ol.hEvent, 1, INFINITE); + wait = (DWORD) rb_w32_wait_events_blocking(&ol.hEvent, 1, INFINITE); if (wait != WAIT_OBJECT_0) { if (wait == WAIT_OBJECT_0 + 1) errno = EINTR; ---------------------------------------- http://redmine.ruby-lang.org