diff options
author | wiz <wiz> | 2011-01-14 10:32:28 +0000 |
---|---|---|
committer | wiz <wiz> | 2011-01-14 10:32:28 +0000 |
commit | ad080481ed53c11f537e9f669de6149db7334f37 (patch) | |
tree | e92aebede95a9f88ac9cfacbb523ee2dda68d69e /editors/emacs/patches | |
parent | cb81dd95073ea330d3f5e929fda28477aded7d48 (diff) | |
download | pkgsrc-ad080481ed53c11f537e9f669de6149db7334f37.tar.gz |
Fix build with png-1.5.
Diffstat (limited to 'editors/emacs/patches')
-rw-r--r-- | editors/emacs/patches/patch-ac | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/editors/emacs/patches/patch-ac b/editors/emacs/patches/patch-ac new file mode 100644 index 00000000000..d6351bf0c40 --- /dev/null +++ b/editors/emacs/patches/patch-ac @@ -0,0 +1,27 @@ +$NetBSD: patch-ac,v 1.20 2011/01/14 10:32:28 wiz Exp $ + +Fix build with png-1.5. + +--- src/image.c.orig 2010-04-03 22:26:07.000000000 +0000 ++++ src/image.c +@@ -5648,7 +5648,11 @@ my_png_error (png_ptr, msg) + { + xassert (png_ptr != NULL); + image_error ("PNG error: %s", build_string (msg), Qnil); ++#if (PNG_LIBPNG_VER < 10500) + longjmp (png_ptr->jmpbuf, 1); ++#else ++ png_longjmp (png_ptr, 1); ++#endif + } + + +@@ -5824,7 +5828,7 @@ png_load (f, img) + + /* Set error jump-back. We come back here when the PNG library + detects an error. */ +- if (setjmp (png_ptr->jmpbuf)) ++ if (setjmp (png_jmpbuf(png_ptr))) + { + error: + if (png_ptr) |