$NetBSD$

--- src/helper/png-write.cpp.orig	2010-07-13 03:48:40.000000000 +0000
+++ src/helper/png-write.cpp
@@ -165,7 +165,7 @@ sp_png_write_rgba_striped(SPDocument *do
     /* 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);
