Gentoo Archives: gentoo-commits

From: "Ulrich Mueller (ulm)" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in src/patchsets/emacs/22.3: 10_all_libpng15.patch
Date: Tue, 27 Sep 2011 16:00:35
Message-Id: 20110927160025.0AB682004C@flycatcher.gentoo.org
1 ulm 11/09/27 16:00:25
2
3 Added: 10_all_libpng15.patch
4 Log:
5 Fix compilation with libpng-1.5, bug 384553.
6
7 Revision Changes Path
8 1.1 src/patchsets/emacs/22.3/10_all_libpng15.patch
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/emacs/22.3/10_all_libpng15.patch?rev=1.1&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/emacs/22.3/10_all_libpng15.patch?rev=1.1&content-type=text/plain
12
13 Index: 10_all_libpng15.patch
14 ===================================================================
15 https://bugs.gentoo.org/384553
16
17 --- emacs-22.3-orig/src/image.c
18 +++ emacs-22.3/src/image.c
19 @@ -6427,7 +6427,7 @@
20 {
21 xassert (png_ptr != NULL);
22 image_error ("PNG error: %s", build_string (msg), Qnil);
23 - longjmp (png_ptr->jmpbuf, 1);
24 + longjmp (png_jmpbuf (png_ptr), 1);
25 }
26
27
28 @@ -6603,7 +6603,7 @@
29
30 /* Set error jump-back. We come back here when the PNG library
31 detects an error. */
32 - if (setjmp (png_ptr->jmpbuf))
33 + if (setjmp (png_jmpbuf (png_ptr)))
34 {
35 error:
36 if (png_ptr)