16 lines
528 B
Diff
16 lines
528 B
Diff
|
$NetBSD$
|
||
|
|
||
|
Fix build with png-1.5.
|
||
|
|
||
|
--- libAfterImage/export.c.orig 2010-09-23 20:52:15.000000000 +0000
|
||
|
+++ libAfterImage/export.c
|
||
|
@@ -496,7 +496,7 @@ ASImage2png_int ( ASImage *im, void *dat
|
||
|
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 ;
|