$NetBSD: patch-ap,v 1.1 2011/01/19 19:03:12 drochner Exp $ --- f_wrpng.c.orig 2007-03-29 00:23:14.000000000 +0000 +++ f_wrpng.c @@ -20,6 +20,7 @@ #include "w_msgpanel.h" #include "w_setup.h" #include +#include /* * Write PNG file from rgb data @@ -59,7 +60,7 @@ write_png(FILE *file, unsigned char *dat } /* set long jump recovery here */ - if (setjmp(png_ptr->jmpbuf)) { + if (setjmp(png_jmpbuf(png_ptr))) { /* if we get here there was a problem reading the file */ png_destroy_write_struct(&png_ptr, &info_ptr); return False;