aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Moll <mmoll@FreeBSD.org>2015-09-20 21:30:40 +0000
committerMichael Moll <mmoll@FreeBSD.org>2015-09-20 21:30:40 +0000
commitc6e3397f1fa66b6dfc3c7f53039cceb9ed9f66a5 (patch)
tree341f17ed9bc90ef95f19d2a279106a5993ab5c25
parentfeb651a670ea28acbcdff5d4094d1fc157dd4db3 (diff)
downloadports-c6e3397f1fa66b6dfc3c7f53039cceb9ed9f66a5.tar.gz
ports-c6e3397f1fa66b6dfc3c7f53039cceb9ed9f66a5.zip
Notes
-rw-r--r--lang/ruby20/files/patch-include_ruby_ruby.h11
-rw-r--r--lang/ruby21/files/patch-include_ruby_ruby.h11
2 files changed, 22 insertions, 0 deletions
diff --git a/lang/ruby20/files/patch-include_ruby_ruby.h b/lang/ruby20/files/patch-include_ruby_ruby.h
new file mode 100644
index 000000000000..5e78833e0d60
--- /dev/null
+++ b/lang/ruby20/files/patch-include_ruby_ruby.h
@@ -0,0 +1,11 @@
+--- include/ruby/ruby.h.orig 2015-09-20 20:42:37 UTC
++++ include/ruby/ruby.h
+@@ -238,7 +238,7 @@ typedef char ruby_check_sizeof_voidp[SIZ
+ #define FIXNUM_MAX (LONG_MAX>>1)
+ #define FIXNUM_MIN RSHIFT((long)LONG_MIN,1)
+
+-#define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
++#define INT2FIX(i) (((VALUE)(i))<<1 | FIXNUM_FLAG)
+ #define LONG2FIX(i) INT2FIX(i)
+ #define rb_fix_new(v) INT2FIX(v)
+ VALUE rb_int2inum(SIGNED_VALUE);
diff --git a/lang/ruby21/files/patch-include_ruby_ruby.h b/lang/ruby21/files/patch-include_ruby_ruby.h
new file mode 100644
index 000000000000..5c4fbc1c1909
--- /dev/null
+++ b/lang/ruby21/files/patch-include_ruby_ruby.h
@@ -0,0 +1,11 @@
+--- include/ruby/ruby.h.orig 2015-09-20 20:49:26 UTC
++++ include/ruby/ruby.h
+@@ -228,7 +228,7 @@ typedef char ruby_check_sizeof_voidp[SIZ
+ #define FIXNUM_MAX (LONG_MAX>>1)
+ #define FIXNUM_MIN RSHIFT((long)LONG_MIN,1)
+
+-#define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
++#define INT2FIX(i) (((VALUE)(i))<<1 | FIXNUM_FLAG)
+ #define LONG2FIX(i) INT2FIX(i)
+ #define rb_fix_new(v) INT2FIX(v)
+ VALUE rb_int2inum(SIGNED_VALUE);