diff options
Diffstat (limited to 'lang/rubinius/files/patch-vm_builtin_io.cpp')
-rw-r--r-- | lang/rubinius/files/patch-vm_builtin_io.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lang/rubinius/files/patch-vm_builtin_io.cpp b/lang/rubinius/files/patch-vm_builtin_io.cpp new file mode 100644 index 0000000..6757253 --- /dev/null +++ b/lang/rubinius/files/patch-vm_builtin_io.cpp @@ -0,0 +1,14 @@ + +$FreeBSD$ + +--- vm/builtin/io.cpp.orig ++++ vm/builtin/io.cpp +@@ -165,7 +165,7 @@ + + // 1024 is selec't limit. If we try to set a value higher, it corrupts + // memory. YAY FD_SET! +- if(descriptor >= FD_SETSIZE) return -2; ++ if(descriptor >= (int_fd_t)FD_SETSIZE) return -2; + highest = descriptor > highest ? descriptor : highest; + + if(descriptor >= 0) FD_SET((int_fd_t)descriptor, set); |