summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-03-08 10:01:27 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-03-08 10:01:27 +0000
commit0ff8e256551dc3f0d62479d9e324e7f3d1734445 (patch)
treef58c1db768de4066e35fe73e86d2b73a978b1edb /media-libs/imlib2/files
parentFix building with libpng14 wrt #305101 by Lars Wendler. (diff)
downloadhistorical-0ff8e256551dc3f0d62479d9e324e7f3d1734445.tar.gz
historical-0ff8e256551dc3f0d62479d9e324e7f3d1734445.tar.bz2
historical-0ff8e256551dc3f0d62479d9e324e7f3d1734445.zip
Fix implicit declaration of function png_check_sig with libpng14.
Package-Manager: portage-2.2_rc65/cvs/Linux x86_64
Diffstat (limited to 'media-libs/imlib2/files')
-rw-r--r--media-libs/imlib2/files/imlib2-1.4.2-libpng14.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/media-libs/imlib2/files/imlib2-1.4.2-libpng14.patch b/media-libs/imlib2/files/imlib2-1.4.2-libpng14.patch
new file mode 100644
index 000000000000..a338bc693dd6
--- /dev/null
+++ b/media-libs/imlib2/files/imlib2-1.4.2-libpng14.patch
@@ -0,0 +1,13 @@
+http://repos.archlinux.org/wsvn/packages/imlib2/trunk/libpng14.patch
+
+--- src/modules/loaders/loader_png.c
++++ src/modules/loaders/loader_png.c
+@@ -38,7 +38,7 @@
+
+ /* if we haven't read the header before, set the header data */
+ fread(buf, 1, PNG_BYTES_TO_CHECK, f);
+- if (!png_check_sig(buf, PNG_BYTES_TO_CHECK))
++ if (png_sig_cmp(buf, 0, PNG_BYTES_TO_CHECK))
+ {
+ fclose(f);
+ return 0;