]>
Commit | Line | Data |
---|---|---|
21ac7886 AG |
1 | --- grace-5.1.22/src/rstdrv.c~ 2004-07-03 22:47:46.000000000 +0200 |
2 | +++ grace-5.1.22/src/rstdrv.c 2012-02-12 22:16:50.451780508 +0100 | |
3 | @@ -54,6 +54,7 @@ | |
4 | ||
5 | #ifdef HAVE_LIBPNG | |
6 | # include <png.h> | |
7 | +# include <zlib.h> | |
8 | #endif | |
9 | ||
10 | #ifndef NONE_GUI | |
11 | @@ -886,7 +886,7 @@ | |
12 | return; | |
13 | } | |
14 | ||
15 | - if (setjmp(png_ptr->jmpbuf)) { | |
16 | + if (setjmp(png_jmpbuf(png_ptr))) { | |
17 | png_destroy_write_struct(&png_ptr, &info_ptr); | |
18 | return; | |
19 | } |