summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-03-10 16:59:33 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-03-10 16:59:33 +0000
commit2ea65262eb462b6cc5f404fd07578e1332b68e13 (patch)
tree728db47af73c824818dcded1ba305d420845f0ab /media-gfx/pngnq/files
parentapp-admin/webalizer: Fix SRC_URI (diff)
downloadgentoo-2-2ea65262eb462b6cc5f404fd07578e1332b68e13.tar.gz
gentoo-2-2ea65262eb462b6cc5f404fd07578e1332b68e13.tar.bz2
gentoo-2-2ea65262eb462b6cc5f404fd07578e1332b68e13.zip
Fix building with libpng14.
(Portage version: 2.2_rc66/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx/pngnq/files')
-rw-r--r--media-gfx/pngnq/files/pngnq-1.0-libpng14.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/media-gfx/pngnq/files/pngnq-1.0-libpng14.patch b/media-gfx/pngnq/files/pngnq-1.0-libpng14.patch
new file mode 100644
index 000000000000..e2eb9c8972e5
--- /dev/null
+++ b/media-gfx/pngnq/files/pngnq-1.0-libpng14.patch
@@ -0,0 +1,13 @@
+http://aur.archlinux.org/packages.php?ID=10325
+
+--- src/rwpng.c
++++ src/rwpng.c
+@@ -80,7 +80,7 @@
+ * have used slightly more general png_sig_cmp() function instead */
+
+ fread(sig, 1, 8, infile);
+- if (!png_check_sig(sig, 8)) {
++ if (png_sig_cmp(sig, 0, 8)) {
+ mainprog_ptr->retval = 21; /* bad signature */
+ return mainprog_ptr->retval;
+ }