$NetBSD: patch-ab,v 1.3 2011/01/14 10:57:50 wiz Exp $ Fix build with png-1.5. --- src/spuunmux.c.orig 2010-03-05 06:37:06.000000000 +0000 +++ src/spuunmux.c @@ -38,6 +38,7 @@ #include #include +#include #include "rgb.h" #include "common.h" @@ -483,7 +484,7 @@ static int write_png(char *file_name,str return -1; } - if (setjmp(png_ptr->jmpbuf)) { + if (setjmp(png_jmpbuf(png_ptr))) { png_destroy_write_struct(&png_ptr, &info_ptr); fclose(fp); return -1;