Project

General

Profile

Actions

Bug #2760

closed

unable to cross-compile win32.c

Added by rogerdpack (Roger Pack) over 15 years ago. Updated about 14 years ago.

Status:
Rejected
Target version:
-
ruby -v:
Revision: 26711
Backport:
[ruby-core:28237]

Description

=begin
:~/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;
    

=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0