File xmgrace-libpng15.patch of Package xmgrace
--- src/rstdrv.c 2004-07-03 22:47:46.000000000 +0200 +++ src/rstdrv.c.new 2012-09-04 17:46:08.325843443 +0200 @@ -54,6 +54,7 @@ #ifdef HAVE_LIBPNG # include <png.h> +# include <zlib.h> #endif #ifndef NONE_GUI @@ -885,7 +886,7 @@ static void rstImagePng(gdImagePtr ihand return; } - if (setjmp(png_ptr->jmpbuf)) { + if (setjmp(png_jmpbuf(png_ptr))) { png_destroy_write_struct(&png_ptr, &info_ptr); return; }