summaryrefslogtreecommitdiff
path: root/lang/ruby19/files/patch-io.c
diff options
context:
space:
mode:
authorStanislav Sedov <stas@FreeBSD.org>2008-04-06 08:58:21 +0000
committerStanislav Sedov <stas@FreeBSD.org>2008-04-06 08:58:21 +0000
commitfae8e0f615b1dfcff35249a7a11ebfba7391bc56 (patch)
treecbba292aa57c0d2e7bb423ca0366362b198eec85 /lang/ruby19/files/patch-io.c
parent- Add entry for mail/postfix-policyd-weight (diff)
- 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@
Diffstat (limited to '')
-rw-r--r--lang/ruby19/files/patch-io.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/lang/ruby19/files/patch-io.c b/lang/ruby19/files/patch-io.c
new file mode 100644
index 000000000000..8765d8119090
--- /dev/null
+++ b/lang/ruby19/files/patch-io.c
@@ -0,0 +1,20 @@
+--- 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;