Package: darkplaces / 0~20110628+svn11619-3

0019-If-linking-libpng-conventionally-use-the-png_jmpbuf-.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Simon McVittie <smcv@debian.org>
Date: Sat, 21 Jan 2012 22:19:29 +0000
Subject: If linking libpng conventionally, use the png_jmpbuf macro

This is necessary to compile against libpng 1.5.x.

Origin: vendor, Debian
---
 image_png.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/image_png.c b/image_png.c
index 3773df4..612c4dd 100644
--- a/image_png.c
+++ b/image_png.c
@@ -44,7 +44,7 @@ my_setjmp (jmp_buf env)
 
 #ifdef LINK_TO_PNG
 
-#define qpng_setjmp(png) my_setjmp (png->jmpbuf)
+#define qpng_setjmp(png) my_setjmp (png_jmpbuf (png))
 
 #define qpng_set_sig_bytes png_set_sig_bytes
 #define qpng_sig_cmp png_sig_cmp
--