summaryrefslogtreecommitdiff
path: root/archivers/unalz/patches
diff options
context:
space:
mode:
authorminskim <minskim>2005-05-17 16:11:42 +0000
committerminskim <minskim>2005-05-17 16:11:42 +0000
commit0f712e7f4c3f7529f36d0f9271c258b92b5faed6 (patch)
tree85c8b944e8f783695dc047b08fe54217bf60392d /archivers/unalz/patches
parent9dd8793db238266070cdbed5cb10494e7e0dbe60 (diff)
downloadpkgsrc-0f712e7f4c3f7529f36d0f9271c258b92b5faed6.tar.gz
Use const char*, instead of char*, for the second parameter of iconv()
on Darwin.
Diffstat (limited to 'archivers/unalz/patches')
-rw-r--r--archivers/unalz/patches/patch-ab4
1 files changed, 2 insertions, 2 deletions
diff --git a/archivers/unalz/patches/patch-ab b/archivers/unalz/patches/patch-ab
index 9c6ffa5300c..53d9586cba6 100644
--- a/archivers/unalz/patches/patch-ab
+++ b/archivers/unalz/patches/patch-ab
@@ -1,4 +1,4 @@
-$NetBSD: patch-ab,v 1.2 2005/03/11 22:18:27 rillig Exp $
+$NetBSD: patch-ab,v 1.3 2005/05/17 16:11:42 minskim Exp $
This patch assumes that on NetBSD, every <iconv.h> has the non-const
prototype argument for the second parameter of iconv(). This is true for
@@ -32,7 +32,7 @@ package converters/libiconv is used or there's a current <iconv.h>.
char inbuf[ICONV_BUF_SIZE];
char outbuf[ICONV_BUF_SIZE];
-#if defined(__FreeBSD__) || defined(__CYGWIN__)
-+#if defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__NetBSD__)
++#if defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__APPLE__) || defined(__NetBSD__)
const char *inptr = inbuf;
#else
char *inptr = inbuf;