summaryrefslogtreecommitdiffstats
path: root/src/gd-1-libpng15.patch
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2011-03-03 16:27:12 (GMT)
committerTony Theodore <tonyt@logyst.com>2011-03-03 16:27:12 (GMT)
commit5abd6a1b390af6acd9ee399af1594db184077ae3 (patch)
tree521682a6f9bcd23ad61fcd94530ac80c83762b52 /src/gd-1-libpng15.patch
parentd9fa2b352c45d0f42417f30b7244dbbe4eb4ab02 (diff)
downloadmxe-5abd6a1b390af6acd9ee399af1594db184077ae3.zip
mxe-5abd6a1b390af6acd9ee399af1594db184077ae3.tar.gz
mxe-5abd6a1b390af6acd9ee399af1594db184077ae3.tar.bz2
package gd: libpng15 compatibility
Diffstat (limited to 'src/gd-1-libpng15.patch')
-rw-r--r--src/gd-1-libpng15.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gd-1-libpng15.patch b/src/gd-1-libpng15.patch
new file mode 100644
index 0000000..41771c1
--- /dev/null
+++ b/src/gd-1-libpng15.patch
@@ -0,0 +1,17 @@
+# This file is part of mingw-cross-env.
+# See doc/index.html for further information.
+
+This patch has been taken from:
+http://bugs.gentoo.org/show_bug.cgi?id=305101
+http://repos.archlinux.org/wsvn/packages/gd/trunk/libpng14.patch
+
+--- a/gd_png.c
++++ b/gd_png.c
+@@ -149,7 +149,7 @@
+ return NULL;
+ }
+
+- if (!png_check_sig (sig, 8)) { /* bad signature */
++ if (png_sig_cmp (sig, 0, 8)) { /* bad signature */
+ return NULL; /* bad signature */
+ }