openbsd-ports/graphics/inkscape/patches/patch-src_helper_png-write_cpp
naddy eed7c62887 Fix build with png-1.5.
All fixes by yours truly.
2011-07-08 20:38:00 +00:00

16 lines
651 B
Plaintext

$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);