summaryrefslogtreecommitdiff
path: root/x11-toolkits/fltk11/files/patch-src_Fl_PNG_Image.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'x11-toolkits/fltk11/files/patch-src_Fl_PNG_Image.cxx')
-rw-r--r--x11-toolkits/fltk11/files/patch-src_Fl_PNG_Image.cxx19
1 files changed, 19 insertions, 0 deletions
diff --git a/x11-toolkits/fltk11/files/patch-src_Fl_PNG_Image.cxx b/x11-toolkits/fltk11/files/patch-src_Fl_PNG_Image.cxx
new file mode 100644
index 000000000000..66abec38b6ac
--- /dev/null
+++ b/x11-toolkits/fltk11/files/patch-src_Fl_PNG_Image.cxx
@@ -0,0 +1,19 @@
+--- src/Fl_PNG_Image.cxx.orig 2006-06-09 18:16:34.000000000 +0200
++++ src/Fl_PNG_Image.cxx 2012-05-26 13:55:30.000000000 +0200
+@@ -46,6 +46,7 @@
+ # include <zlib.h>
+ # ifdef HAVE_PNG_H
+ # include <png.h>
++# include <pngpriv.h>
+ # else
+ # include <libpng/png.h>
+ # endif // HAVE_PNG_H
+@@ -75,7 +76,7 @@
+ pp = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
+ info = png_create_info_struct(pp);
+
+- if (setjmp(pp->jmpbuf))
++ if (setjmp(png_jmpbuf(pp)))
+ {
+ Fl::warning("PNG file \"%s\" contains errors!\n", png);
+ return;