$OpenBSD: patch-src_helper_png-write_cpp,v 1.1 2011/07/08 20:38:00 naddy Exp $ Fix build with png-1.5. --- src/helper/png-write.cpp.orig Wed Jul 6 19:28:18 2011 +++ src/helper/png-write.cpp Wed Jul 6 19:28:41 2011 @@ -165,7 +165,7 @@ sp_png_write_rgba_striped(SPDocument *doc, /* Set error handling. REQUIRED if you aren't supplying your own * error hadnling functions in the png_create_write_struct() call. */ - if (setjmp(png_ptr->jmpbuf)) { + if (setjmp(png_jmpbuf(png_ptr))) { /* If we get here, we had a problem reading the file */ fclose(fp); png_destroy_write_struct(&png_ptr, &info_ptr);