aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/tomoe/files
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2011-08-12 07:42:24 +0800
committerswills <swills@FreeBSD.org>2011-08-12 07:42:24 +0800
commitc0723b3706b21cab09acd0abc0394697bf100462 (patch)
tree4a59cadb9faeed140385b0f98485f6c53cd675a3 /japanese/tomoe/files
parent3606275243b0fd7b520caa7dd0a5eed53ab5daf4 (diff)
downloadfreebsd-ports-gnome-c0723b3706b21cab09acd0abc0394697bf100462.tar.gz
freebsd-ports-gnome-c0723b3706b21cab09acd0abc0394697bf100462.tar.zst
freebsd-ports-gnome-c0723b3706b21cab09acd0abc0394697bf100462.zip
- Fix build with Ruby 1.9
PR: ports/159150 Submitted by: swills (me) Approved by: maintainer timeout (ume; >2 weeks)
Diffstat (limited to 'japanese/tomoe/files')
-rw-r--r--japanese/tomoe/files/patch-bindings_ruby_tomoe-rb-char.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/japanese/tomoe/files/patch-bindings_ruby_tomoe-rb-char.c b/japanese/tomoe/files/patch-bindings_ruby_tomoe-rb-char.c
new file mode 100644
index 000000000000..20f2f2ee7770
--- /dev/null
+++ b/japanese/tomoe/files/patch-bindings_ruby_tomoe-rb-char.c
@@ -0,0 +1,11 @@
+--- bindings/ruby/tomoe-rb-char.c.orig 2011-07-24 02:20:26.000000000 +0000
++++ bindings/ruby/tomoe-rb-char.c 2011-07-24 02:22:22.000000000 +0000
+@@ -13,7 +13,7 @@
+ if (NIL_P(xml)) {
+ chr = tomoe_char_new();
+ } else {
+- chr = tomoe_char_new_from_xml_data(RVAL2CSTR(xml), RSTRING(xml)->len);
++ chr = tomoe_char_new_from_xml_data(RVAL2CSTR(xml), RSTRING_LEN(xml));
+ }
+
+ G_INITIALIZE(self, chr);