freebsd-ports/lang/ruby19/files/patch-io.c
Stanislav Sedov fae8e0f615 - Add ruby 1.9 support
- Implement new knobs for gems and rake (these are included in
  ruby 1.9 distribution already). Also move gem bits from
  ruby-gems/Makefile.common to bsd.ruby.mk[1]. Now to depend
  on gems or rake you should define USE_RUBYGEMS/USE_RAKE
  accordingly. Also RAKE_BIN variable is provided for
  pointing to the right rake executable.
- Rewrite RUBY_SCHEBANG in awk to eliminate build dependency
  on ruby.

Discussed with:	Jonathan Weiss <jw@innerewut.de> [1] (gems maintainer)
Tested by:	ports@
2008-04-06 08:58:21 +00:00

20 lines
560 B
C

--- io.c.orig 2007-12-28 02:17:32.000000000 +0300
+++ io.c 2007-12-28 02:17:58.000000000 +0300
@@ -5324,7 +5324,7 @@
#if !defined(MSDOS) && !defined(__human68k__)
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;
@@ -5352,7 +5352,7 @@
rb_io_ctl(VALUE io, VALUE req, VALUE arg, int io_p)
{
#if !defined(MSDOS) && !defined(__human68k__)
- int cmd = NUM2ULONG(req);
+ unsigned long cmd = NUM2ULONG(req);
rb_io_t *fptr;
long len = 0;
long narg = 0;