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