* [gentoo-commits] gentoo-x86 commit in sci-physics/root/files: root-5.26.00e-libpng15.patch
@ 2011-10-18 16:35 Samuli Suominen (ssuominen)
0 siblings, 0 replies; only message in thread
From: Samuli Suominen (ssuominen) @ 2011-10-18 16:35 UTC (permalink / raw
To: gentoo-commits
ssuominen 11/10/18 16:35:29
Added: root-5.26.00e-libpng15.patch
Log:
Fix building with libpng15 wrt #387553 by Daniel Savard
(Portage version: 2.2.0_alpha67/cvs/Linux x86_64)
Revision Changes Path
1.1 sci-physics/root/files/root-5.26.00e-libpng15.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/files/root-5.26.00e-libpng15.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/files/root-5.26.00e-libpng15.patch?rev=1.1&content-type=text/plain
Index: root-5.26.00e-libpng15.patch
===================================================================
This patch is a copy from media-libs/libafterimage.
--- graf2d/asimage/src/libAfterImage/export.c
+++ graf2d/asimage/src/libAfterImage/export.c
@@ -496,7 +496,7 @@
png_ptr = png_create_write_struct( PNG_LIBPNG_VER_STRING, NULL, NULL, NULL );
if ( png_ptr != NULL )
if( (info_ptr = png_create_info_struct(png_ptr)) != NULL )
- if( setjmp(png_ptr->jmpbuf) )
+ if( setjmp(png_jmpbuf(png_ptr)) )
{
png_destroy_info_struct(png_ptr, (png_infopp) &info_ptr);
info_ptr = NULL ;
--- graf2d/asimage/src/libAfterImage/import.c
+++ graf2d/asimage/src/libAfterImage/import.c
@@ -1251,7 +1251,7 @@
* the normal method of doing things with libpng). REQUIRED unless you
* set up your own error handlers in the png_create_read_struct() earlier.
*/
- if ( !setjmp (png_ptr->jmpbuf))
+ if ( !setjmp (png_jmpbuf(png_ptr)))
{
ASFlagType rgb_flags = ASStorage_RLEDiffCompress|ASStorage_32Bit ;
@@ -1468,7 +1468,7 @@
static void asim_png_read_data(png_structp png_ptr, png_bytep data, png_size_t length)
{
- ASImPNGReadBuffer *buf = (ASImPNGReadBuffer *)png_ptr->io_ptr;
+ ASImPNGReadBuffer *buf = (ASImPNGReadBuffer *)png_get_io_ptr(png_ptr);
memcpy(data, buf->buffer, length);
buf->buffer += length;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-10-18 16:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-18 16:35 [gentoo-commits] gentoo-x86 commit in sci-physics/root/files: root-5.26.00e-libpng15.patch Samuli Suominen (ssuominen)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox