summaryrefslogtreecommitdiff
path: root/editors/emacs22/files
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2012-06-03 09:38:00 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2012-06-03 09:38:00 +0000
commit7ad7e64428107b4dfeee076ed35adfc12b3affe2 (patch)
treee60e3e7d56ae43136993f359535b9f55acddbf9d /editors/emacs22/files
parentUpdate to 0.10.1. (diff)
- use libgif
- fix build with pnng 1.5.10
Notes
Notes: svn path=/head/; revision=298069
Diffstat (limited to 'editors/emacs22/files')
-rw-r--r--editors/emacs22/files/patch-src-image.c32
1 files changed, 25 insertions, 7 deletions
diff --git a/editors/emacs22/files/patch-src-image.c b/editors/emacs22/files/patch-src-image.c
index 408d00ba8095..cf63c524c5a2 100644
--- a/editors/emacs22/files/patch-src-image.c
+++ b/editors/emacs22/files/patch-src-image.c
@@ -1,6 +1,6 @@
---- src/image.c.orig 2010-03-29 08:46:39.902587060 +0200
-+++ src/image.c 2010-03-29 08:51:40.907908128 +0200
-@@ -5793,7 +5793,7 @@
+--- src/image.c.orig 2008-08-26 00:18:33.000000000 +0200
++++ src/image.c 2012-06-03 11:17:01.000000000 +0200
+@@ -6338,7 +6338,7 @@
/* PNG library details. */
DEF_IMGLIB_FN (png_get_io_ptr);
@@ -9,7 +9,7 @@
DEF_IMGLIB_FN (png_create_read_struct);
DEF_IMGLIB_FN (png_create_info_struct);
DEF_IMGLIB_FN (png_destroy_read_struct);
-@@ -5824,7 +5824,7 @@
+@@ -6369,7 +6369,7 @@
return 0;
LOAD_IMGLIB_FN (library, png_get_io_ptr);
@@ -18,7 +18,7 @@
LOAD_IMGLIB_FN (library, png_create_read_struct);
LOAD_IMGLIB_FN (library, png_create_info_struct);
LOAD_IMGLIB_FN (library, png_destroy_read_struct);
-@@ -5849,7 +5849,7 @@
+@@ -6394,7 +6394,7 @@
#else
#define fn_png_get_io_ptr png_get_io_ptr
@@ -27,7 +27,16 @@
#define fn_png_create_read_struct png_create_read_struct
#define fn_png_create_info_struct png_create_info_struct
#define fn_png_destroy_read_struct png_destroy_read_struct
-@@ -5996,7 +5996,7 @@
+@@ -6427,7 +6427,7 @@
+ {
+ xassert (png_ptr != NULL);
+ image_error ("PNG error: %s", build_string (msg), Qnil);
+- longjmp (png_ptr->jmpbuf, 1);
++ longjmp (png_jmpbuf(png_ptr), 1);
+ }
+
+
+@@ -6541,7 +6541,7 @@
/* Check PNG signature. */
if (fread (sig, 1, sizeof sig, fp) != sizeof sig
@@ -36,7 +45,7 @@
{
image_error ("Not a PNG file: `%s'", file, Qnil);
UNGCPRO;
-@@ -6013,7 +6013,7 @@
+@@ -6558,7 +6558,7 @@
/* Check PNG signature. */
if (tbr.len < sizeof sig
@@ -45,3 +54,12 @@
{
image_error ("Not a PNG image: `%s'", img->spec, Qnil);
UNGCPRO;
+@@ -6603,7 +6603,7 @@
+
+ /* 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)