summaryrefslogtreecommitdiffstats
path: root/extra/fltk/libpng14.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extra/fltk/libpng14.patch')
-rw-r--r--extra/fltk/libpng14.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/extra/fltk/libpng14.patch b/extra/fltk/libpng14.patch
new file mode 100644
index 000000000..f6c49228e
--- /dev/null
+++ b/extra/fltk/libpng14.patch
@@ -0,0 +1,12 @@
+diff -upr fltk-2.0.x-r6829.orig/images/fl_png.cxx fltk-2.0.x-r6829/images/fl_png.cxx
+--- fltk-2.0.x-r6829.orig/images/fl_png.cxx 2010-01-23 04:42:12.000000000 +0200
++++ fltk-2.0.x-r6829/images/fl_png.cxx 2010-01-23 04:58:31.000000000 +0200
+@@ -62,7 +62,7 @@ bool pngImage::test(const uchar* datas,
+ #if !HAVE_LIBPNG
+ return 0;
+ #else
+- return png_check_sig((png_byte*)datas, (int)size)!=0;
++ return png_sig_cmp((png_byte*)datas, 0, (int)size)==0;
+ #endif
+ }
+