diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2011-10-17 14:33:32 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2011-10-17 14:33:32 +0000 |
commit | 3c6bc37445f471a7b3a13b095f627867ffe8eea6 (patch) | |
tree | 047fc66e29f60460ee3a98a6379470ce77ebda4f /dev-ruby/ruby-libart2/files | |
parent | Stable for HPPA (bug #382641). (diff) | |
download | gentoo-2-3c6bc37445f471a7b3a13b095f627867ffe8eea6.tar.gz gentoo-2-3c6bc37445f471a7b3a13b095f627867ffe8eea6.tar.bz2 gentoo-2-3c6bc37445f471a7b3a13b095f627867ffe8eea6.zip |
Fix building with libpng15 wrt #387393 by Jakub Paluszak
(Portage version: 2.2.0_alpha67/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/ruby-libart2/files')
-rw-r--r-- | dev-ruby/ruby-libart2/files/ruby-libart2-0.19.4-libpng15.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dev-ruby/ruby-libart2/files/ruby-libart2-0.19.4-libpng15.patch b/dev-ruby/ruby-libart2/files/ruby-libart2-0.19.4-libpng15.patch new file mode 100644 index 000000000000..fbfd609b096c --- /dev/null +++ b/dev-ruby/ruby-libart2/files/ruby-libart2-0.19.4-libpng15.patch @@ -0,0 +1,19 @@ +--- libart/src/rbart_canvas.c ++++ libart/src/rbart_canvas.c +@@ -15,6 +15,7 @@ + + #include <jpeglib.h> + #include <png.h> ++#include <zlib.h> /* Z_BEST_COMPRESSION */ + + #define ART_CANVAS_PNG_INTERLACE_ADAM7 1 + #define ART_CANVAS_ALPHA_MASK 2 +@@ -352,7 +353,7 @@ + return Qnil; + } + +- if (setjmp(png_ptr->jmpbuf)) ++ if (setjmp(png_jmpbuf(png_ptr))) + { + png_destroy_write_struct(&png_ptr, &info_ptr); + return Qnil; |