aboutsummaryrefslogtreecommitdiff
path: root/games/fuhquake/files/patch-image.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/fuhquake/files/patch-image.c')
-rw-r--r--games/fuhquake/files/patch-image.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/games/fuhquake/files/patch-image.c b/games/fuhquake/files/patch-image.c
new file mode 100644
index 000000000000..24084f0116ad
--- /dev/null
+++ b/games/fuhquake/files/patch-image.c
@@ -0,0 +1,38 @@
+--- image.c.orig 2004-01-07 00:43:22.000000000 +0100
++++ image.c 2012-05-26 15:10:53.000000000 +0200
+@@ -24,6 +24,8 @@
+
+ #ifdef WITH_PNG
+ #include "png.h"
++#include "zlib.h"
++#include "pngpriv.h"
+ #endif
+
+ #ifdef WITH_JPEG
+@@ -569,7 +571,7 @@
+ return NULL;
+ }
+
+- if (setjmp(png_ptr->jmpbuf)) {
++ if (setjmp(png_ptr->longjmp_buffer)) {
+ qpng_destroy_read_struct(&png_ptr, &pnginfo, NULL);
+ fclose(fin);
+ return NULL;
+@@ -678,7 +680,7 @@
+ return false;
+ }
+
+- if (setjmp(png_ptr->jmpbuf)) {
++ if (setjmp(png_ptr->longjmp_buffer)) {
+ qpng_destroy_write_struct(&png_ptr, &info_ptr);
+ fclose(fp);
+ return false;
+@@ -743,7 +745,7 @@
+ return false;
+ }
+
+- if (setjmp(png_ptr->jmpbuf)) {
++ if (setjmp(png_ptr->longjmp_buffer)) {
+ qpng_destroy_write_struct(&png_ptr, &info_ptr);
+ fclose(fp);
+ return false;