openbsd-ports/x11/afterstep/patches/patch-libAfterImage_export_c
naddy eed7c62887 Fix build with png-1.5.
All fixes by yours truly.
2011-07-08 20:38:00 +00:00

16 lines
624 B
Plaintext

$OpenBSD: patch-libAfterImage_export_c,v 1.1 2011/07/08 20:38:01 naddy Exp $
Fix build with png-1.5.
--- libAfterImage/export.c.orig Tue Jul 5 21:59:34 2011
+++ libAfterImage/export.c Tue Jul 5 22:00:02 2011
@@ -483,7 +483,7 @@ ASImage2png_int ( ASImage *im, void *data, png_rw_ptr
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 ;