aboutsummaryrefslogtreecommitdiff
path: root/graphics/libafterimage/files/patch-import.c
blob: 3b2a5f7f8b47eaecc092af0416242a417d7b63d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- import.c.orig	2011-01-15 06:52:22.000000000 +0100
+++ import.c	2012-05-04 18:57:46.000000000 +0200
@@ -40,6 +40,7 @@
 # else
 #  include <png.h>
 # endif
+# include <pngpriv.h>
 #else
 # include <setjmp.h>
 # ifdef HAVE_JPEG
@@ -1251,7 +1252,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 ;