grace-5.1.22-libpng15.patch 339 B

1234567891011121314151617181920
  1. --- a/src/rstdrv.c
  2. +++ b/src/rstdrv.c
  3. @@ -53,6 +53,7 @@
  4. #endif
  5. #ifdef HAVE_LIBPNG
  6. +# include <zlib.h>
  7. # include <png.h>
  8. #endif
  9. @@ -885,7 +886,7 @@
  10. return;
  11. }
  12. - if (setjmp(png_ptr->jmpbuf)) {
  13. + if (setjmp(png_jmpbuf(png_ptr))) {
  14. png_destroy_write_struct(&png_ptr, &info_ptr);
  15. return;
  16. }