$NetBSD: patch-ag,v 1.3 2013/02/17 15:03:01 prlw1 Exp $ Fix build with png-1.5 (setjmp) http://www.fltk.org/str.php?L2363+P0+S-2+C0+I0+E0+Q Fix build with png-1.6 (string.h) --- images/fl_png.cxx.orig 2007-04-16 14:48:06.000000000 +0000 +++ images/fl_png.cxx @@ -38,7 +38,8 @@ extern "C" #endif } -# include +#include +#include static png_bytep cur_datas; @@ -111,7 +112,7 @@ bool pngImage::fetch() png_set_sig_bytes(png_ptr, 8); } - if (setjmp(png_ptr->jmpbuf)) + if (setjmp(png_jmpbuf(png_ptr))) goto error; png_read_info(png_ptr, info_ptr);