summaryrefslogtreecommitdiff
path: root/wm/afterstep/patches/patch-libAfterImage_import.c
blob: 5909a49bb2929b198a632bc151c6ec72d0a0c594 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-libAfterImage_import.c,v 1.1 2011/04/05 12:02:00 wiz Exp $

Fix build with png-1.5.

--- libAfterImage/import.c.orig	2005-06-21 22:58:24.000000000 +0000
+++ libAfterImage/import.c
@@ -876,7 +876,7 @@ png2ASImage( const char * path, ASImageI
 			 * 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 ;