summaryrefslogtreecommitdiff
path: root/x11/gnome-libs/files/patch-tools-convertrgb-loadpng.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--x11/gnome-libs/files/patch-tools-convertrgb-loadpng.c21
1 files changed, 19 insertions, 2 deletions
diff --git a/x11/gnome-libs/files/patch-tools-convertrgb-loadpng.c b/x11/gnome-libs/files/patch-tools-convertrgb-loadpng.c
index 029d3bfffa9c..8307927f80b6 100644
--- a/x11/gnome-libs/files/patch-tools-convertrgb-loadpng.c
+++ b/x11/gnome-libs/files/patch-tools-convertrgb-loadpng.c
@@ -1,6 +1,23 @@
--- tools/convertrgb/loadpng.c.orig 1998-09-25 17:33:59.000000000 +0200
-+++ tools/convertrgb/loadpng.c 2010-03-29 09:05:19.000000000 +0200
-@@ -161,7 +161,7 @@
++++ tools/convertrgb/loadpng.c 2012-05-09 13:02:52.000000000 +0200
+@@ -3,6 +3,7 @@
+ */
+
+ #include "convertrgb.h"
++#include "pngpriv.h"
+
+ static int transp;
+
+@@ -29,7 +30,7 @@
+ return NULL;
+ }
+
+- if (setjmp(png_ptr->jmpbuf))
++ if (setjmp(png_jmpbuf(png_ptr)))
+ {
+ png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
+ return NULL;
+@@ -161,7 +162,7 @@
return 0;
fread(buf, 1, 8, f);
fclose(f);