aboutsummaryrefslogtreecommitdiff
path: root/games/xbubble/files/patch-src-loadpng.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/xbubble/files/patch-src-loadpng.c')
-rw-r--r--games/xbubble/files/patch-src-loadpng.c21
1 files changed, 19 insertions, 2 deletions
diff --git a/games/xbubble/files/patch-src-loadpng.c b/games/xbubble/files/patch-src-loadpng.c
index d7bf605ecb2a..3a0c67cf9712 100644
--- a/games/xbubble/files/patch-src-loadpng.c
+++ b/games/xbubble/files/patch-src-loadpng.c
@@ -1,6 +1,14 @@
--- src/loadpng.c.orig 2003-09-30 14:55:20.000000000 +0200
-+++ src/loadpng.c 2010-03-30 12:09:13.000000000 +0200
-@@ -55,7 +55,7 @@
++++ src/loadpng.c 2012-04-29 13:39:04.000000000 +0200
+@@ -21,6 +21,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <png.h>
++#include <pngpriv.h>
+
+ #include "gettext.h"
+
+@@ -55,7 +56,7 @@
}
/* ensure that we opened a PNG file */
fread( header, 1, 8, fd );
@@ -9,3 +17,12 @@
fclose(fd);
fprintf(stderr,_("File %s does not have a valid PNG signature.\n"), file);
return NULL;
+@@ -73,7 +74,7 @@
+ return NULL;
+ }
+ /* libpng does a longjmp here when it encounters an error */
+- if ( setjmp( png_ptr->jmpbuf ) ) {
++ if ( setjmp( png_jmpbuf(png_ptr) ) ) {
+ png_destroy_read_struct( &png_ptr, &info_ptr, NULL);
+ fclose(fd);
+ return NULL;