patch-src_xfns_c 634 B

12345678910111213141516171819202122232425
  1. $OpenBSD: patch-src_xfns_c,v 1.1 2011/07/08 20:36:09 naddy Exp $
  2. Fix build with png-1.5.
  3. --- src/xfns.c.orig Mon Jul 4 17:41:10 2011
  4. +++ src/xfns.c Mon Jul 4 17:41:40 2011
  5. @@ -8541,7 +8541,7 @@ my_png_error (png_ptr, msg)
  6. {
  7. xassert (png_ptr != NULL);
  8. image_error ("PNG error: %s", build_string (msg), Qnil);
  9. - longjmp (png_ptr->jmpbuf, 1);
  10. + png_longjmp (png_ptr, 1);
  11. }
  12. @@ -8699,7 +8699,7 @@ png_load (f, img)
  13. /* Set error jump-back. We come back here when the PNG library
  14. detects an error. */
  15. - if (setjmp (png_ptr->jmpbuf))
  16. + if (setjmp (png_jmpbuf(png_ptr)))
  17. {
  18. error:
  19. if (png_ptr)