summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPieter van den Abeele <pvdabeel@gentoo.org>2004-07-11 03:47:33 +0000
committerPieter van den Abeele <pvdabeel@gentoo.org>2004-07-11 03:47:33 +0000
commit02916a08c4d68d444a86ca176ddec86d1be30df2 (patch)
tree58211fbd2c2a6fd9f5fd9735e83f14bf03eeebba /media-libs/libpng/files
parentremove -* from keywords (Manifest recommit) (diff)
downloadgentoo-2-02916a08c4d68d444a86ca176ddec86d1be30df2.tar.gz
gentoo-2-02916a08c4d68d444a86ca176ddec86d1be30df2.tar.bz2
gentoo-2-02916a08c4d68d444a86ca176ddec86d1be30df2.zip
Stable on Mac OS X - Patching was required: implemented missing strnlen
Diffstat (limited to 'media-libs/libpng/files')
-rw-r--r--media-libs/libpng/files/macos.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/media-libs/libpng/files/macos.patch b/media-libs/libpng/files/macos.patch
new file mode 100644
index 000000000000..f6ed524e9b98
--- /dev/null
+++ b/media-libs/libpng/files/macos.patch
@@ -0,0 +1,17 @@
+--- libpng-1.2.5/pngerror.c.orig Sun Jul 11 05:43:34 2004
++++ libpng-1.2.5/pngerror.c Sun Jul 11 05:43:45 2004
+@@ -23,6 +23,14 @@
+ png_default_warning PNGARG((png_structp png_ptr,
+ png_const_charp warning_message));
+
++size_t strnlen(const char *s, size_t limit)
++{
++ size_t len = 0;
++ while ((len < limit) && (*s++))
++ len++;
++ return len;
++}
++
+ /* This function is called whenever there is a fatal error. This function
+ * should not be changed. If there is a need to handle errors differently,
+ * you should supply a replacement error function and use png_set_error_fn()