1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00
freebsd-ports/lang/ruby19/files/patch-io.c
Stanislav Sedov ffe7a61239 - Update ruby19 to 1.9.1.
PR:		ports/129818 (based on)
Submitted by:	Hung-Yi Chen <gaod@hychen.org>
2009-02-09 17:49:51 +00:00

21 lines
483 B
C

--- io.c.orig 2009-01-28 12:20:46.000000000 +0300
+++ io.c 2009-02-09 19:18:58.000000000 +0300
@@ -6685,7 +6685,7 @@
}
static int
-io_cntl(int fd, int cmd, long narg, int io_p)
+io_cntl(int fd, unsigned long cmd, long narg, int io_p)
{
int retval;
@@ -6707,7 +6707,7 @@
static VALUE
rb_io_ctl(VALUE io, VALUE req, VALUE arg, int io_p)
{
- int cmd = NUM2ULONG(req);
+ unsigned long cmd = NUM2ULONG(req);
rb_io_t *fptr;
long len = 0;
long narg = 0;