plotutils-2.6-libpng-1.6.patch 566 B

1234567891011121314151617181920212223242526272829303132
  1. fix building with libpng-1.6
  2. --- libplot/z_write.c
  3. +++ libplot/z_write.c
  4. @@ -164,7 +164,7 @@
  5. }
  6. /* cleanup after libpng errors (error handler does a longjmp) */
  7. - if (setjmp (png_ptr->jmpbuf))
  8. + if (setjmp (png_jmpbuf (png_ptr)))
  9. {
  10. png_destroy_write_struct (&png_ptr, (png_info **)NULL);
  11. return -1;
  12. @@ -444,7 +444,7 @@
  13. #endif
  14. }
  15. - longjmp (png_ptr->jmpbuf, 1);
  16. + png_longjmp (png_ptr, 1);
  17. }
  18. static void
  19. @@ -515,7 +515,7 @@
  20. #endif
  21. }
  22. - longjmp (png_ptr->jmpbuf, 1);
  23. + png_longjmp (png_ptr, 1);
  24. }
  25. static void