File: 08-ftbfs-649948.patch

package info (click to toggle)
glhack 1.2-8.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 26,744 kB
  • sloc: ansic: 208,571; cpp: 13,139; yacc: 2,005; makefile: 1,152; lex: 377; sh: 121; awk: 89; sed: 11
file content (22 lines) | stat: -rw-r--r-- 640 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Subject: FTBFS by libpng 1.5 (Closes: #649948)
Bug-Debian: http://bugs.debian.org/649948

---
 win/gl/gl_image.c |    4 ++++
 1 file changed, 4 insertions(+)

--- a/win/gl/gl_image.c
+++ b/win/gl/gl_image.c
@@ -486,7 +486,11 @@
   /* set error handling since we are using the setjmp/longjmp method
    * (this is the normal method of doing things with libpng).
    */
+#if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >= 4
+  if ( setjmp(png_jmpbuf(png_ptr)) )
+#else
   if (setjmp(png_ptr->jmpbuf))
+#endif
   {
     sdlgl_warning("Problem within LibPNG (unknown)\n");
     goto failed;