aboutsummaryrefslogtreecommitdiff
path: root/print/hp2xx/files/patch-png.c
diff options
context:
space:
mode:
Diffstat (limited to 'print/hp2xx/files/patch-png.c')
-rw-r--r--print/hp2xx/files/patch-png.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/print/hp2xx/files/patch-png.c b/print/hp2xx/files/patch-png.c
new file mode 100644
index 000000000000..48162b3d7dae
--- /dev/null
+++ b/print/hp2xx/files/patch-png.c
@@ -0,0 +1,19 @@
+--- png.c.orig 2003-06-21 17:31:51.000000000 +0200
++++ png.c 2012-05-06 06:59:14.000000000 +0200
+@@ -6,6 +6,7 @@
+ #include <stdlib.h>
+ #include "to_png.h"
+ #include <png.h>
++#include <zlib.h>
+
+ #define PDNCOL 256
+
+@@ -36,7 +37,7 @@
+ }
+
+ /* set up error handlimg for libpng */
+- if (setjmp(png_ptr->jmpbuf)) {
++ if (setjmp(png_jmpbuf(png_ptr))) {
+ png_destroy_write_struct(&png_ptr, &info_ptr);
+ return;
+ }