aboutsummaryrefslogtreecommitdiff
path: root/print/transfig/files/patch-fig2dev_dev_readpng.c
diff options
context:
space:
mode:
Diffstat (limited to 'print/transfig/files/patch-fig2dev_dev_readpng.c')
-rw-r--r--print/transfig/files/patch-fig2dev_dev_readpng.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/print/transfig/files/patch-fig2dev_dev_readpng.c b/print/transfig/files/patch-fig2dev_dev_readpng.c
new file mode 100644
index 000000000000..79d259209a20
--- /dev/null
+++ b/print/transfig/files/patch-fig2dev_dev_readpng.c
@@ -0,0 +1,19 @@
+--- fig2dev/dev/readpng.c.orig 2010-04-21 18:02:14.000000000 +0200
++++ fig2dev/dev/readpng.c 2012-05-05 13:20:54.000000000 +0200
+@@ -16,6 +16,7 @@
+ #include "fig2dev.h"
+ #include "object.h"
+ #include <png.h>
++#include <pngpriv.h>
+
+ /* return codes: 1 : success
+ 0 : invalid file
+@@ -62,7 +63,7 @@
+ }
+
+ /* set long jump here */
+- if (setjmp(png_ptr->jmpbuf)) {
++ if (setjmp(png_jmpbuf(png_ptr))) {
+ /* if we get here there was a problem reading the file */
+ png_destroy_read_struct(&png_ptr, &info_ptr, &end_info);
+ return 0;