Project

General

Profile

Actions

Bug #3092

closed

IO Broken with Latest Windows

Added by cfis (Charlie Savage) almost 14 years ago. Updated almost 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.2dev (2010-04-05) [i386-mswin32_100]
Backport:
[ruby-core:29255]

Description

=begin
Compiling with VC 2010, ruby IO is broken. The specific error is WSAEWOULDBLOCK; 10035. Resource temporarily unavailable.

io.c is dependent on EWOULDBLOCK being equal to WSAEWOULDBLOCK on windows. This is done on line 405 of include/win32.h:

#define EWOULDBLOCK WSAEWOULDBLOCK

Except this no longer works, because VC 2010 in errno.h on line 132 defines:

#define EWOULDBLOCK 140

Thus EWOULDBLOCK != WSAEWOULDBLOCK, and ruby io totally breaks.

Patch is attached.
=end


Files

win32_io.patch (792 Bytes) win32_io.patch cfis (Charlie Savage), 04/05/2010 12:20 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0