diff options
Diffstat (limited to 'dev-ruby/json/files/json-1.8.1-ruby22.patch')
-rw-r--r-- | dev-ruby/json/files/json-1.8.1-ruby22.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/dev-ruby/json/files/json-1.8.1-ruby22.patch b/dev-ruby/json/files/json-1.8.1-ruby22.patch new file mode 100644 index 00000000000..a2d55c44ed5 --- /dev/null +++ b/dev-ruby/json/files/json-1.8.1-ruby22.patch @@ -0,0 +1,17 @@ +Fix compilation issue with ruby22. + +See https://github.com/flori/json/issues/229 + +Taken from the ruby-core changes. + +--- ext/json/ext/fbuffer/fbuffer.h.orig 2014-12-27 21:27:31.701991610 +0100 ++++ ext/json/ext/fbuffer/fbuffer.h 2014-12-27 21:28:11.252956858 +0100 +@@ -172,7 +172,7 @@ + + static VALUE fbuffer_to_s(FBuffer *fb) + { +- VALUE result = rb_str_new(FBUFFER_PAIR(fb)); ++ VALUE result = rb_str_new(FBUFFER_PTR(fb), FBUFFER_LEN(fb)); + fbuffer_free(fb); + FORCE_UTF8(result); + return result; |