summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-03-09 06:06:33 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-03-09 06:06:33 +0000
commit4a6d212dc6919a0147adeb794a1bfa47c67b06cd (patch)
tree8bb5785c452ad408195bc9febf57d9d3b9db19bb /dev-games/crystalspace/files
parentadd use deps for libsdl (diff)
downloadgentoo-2-4a6d212dc6919a0147adeb794a1bfa47c67b06cd.tar.gz
gentoo-2-4a6d212dc6919a0147adeb794a1bfa47c67b06cd.tar.bz2
gentoo-2-4a6d212dc6919a0147adeb794a1bfa47c67b06cd.zip
Fix building with libpng14.
(Portage version: 2.2_rc65/cvs/Linux x86_64)
Diffstat (limited to 'dev-games/crystalspace/files')
-rw-r--r--dev-games/crystalspace/files/crystalspace-1.2.1-libpng14.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/dev-games/crystalspace/files/crystalspace-1.2.1-libpng14.patch b/dev-games/crystalspace/files/crystalspace-1.2.1-libpng14.patch
new file mode 100644
index 000000000000..cb7998115a5b
--- /dev/null
+++ b/dev-games/crystalspace/files/crystalspace-1.2.1-libpng14.patch
@@ -0,0 +1,14 @@
+http://permalink.gmane.org/gmane.comp.graphics.crystalspace.tracker/5630
+http://www.libpng.org/pub/png/src/libpng-1.2.x-to-1.4.x-summary.txt
+
+--- plugins/video/loader/png/pngimage.cpp
++++ plugins/video/loader/png/pngimage.cpp
+@@ -378,7 +378,7 @@
+ const png_bytep iBuffer = dataSource->GetUint8();
+ const size_t iSize = dataSource->GetSize();
+
+- if (!png_check_sig (iBuffer, (int)iSize))
++ if (png_sig_cmp (iBuffer, 0, (int)iSize))
+ return false;
+ png = png_create_read_struct (PNG_LIBPNG_VER_STRING, 0, 0, 0);
+ if (!png)