From cdda78045927c7aa2c2d9566074bed8afc1d6193 Mon Sep 17 00:00:00 2001 From: rillig Date: Fri, 11 Mar 2005 22:18:27 +0000 Subject: The patch-ab assumes that on NetBSD, every has the non-const prototype argument for the second parameter of iconv(). This is true for all but some release candidates of NetBSD-2.0, because either the package converters/libiconv is used or there's a current . Needed for NetBSD-1.6.2. Approved by wiz. --- archivers/unalz/distinfo | 4 ++-- archivers/unalz/patches/patch-ab | 16 ++++++++++------ 2 files changed, 12 insertions(+), 8 deletions(-) (limited to 'archivers') diff --git a/archivers/unalz/distinfo b/archivers/unalz/distinfo index 15969451295..f212f0f4eaa 100644 --- a/archivers/unalz/distinfo +++ b/archivers/unalz/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.3 2005/03/02 16:18:47 minskim Exp $ +$NetBSD: distinfo,v 1.4 2005/03/11 22:18:27 rillig Exp $ SHA1 (unalz-0.31.tgz) = 0d6f21b1fc9b00c5ca763b4e402c792ebe045fc9 RMD160 (unalz-0.31.tgz) = 23ccefe2b29b8127c15ebf4f93e313316ad34510 Size (unalz-0.31.tgz) = 129623 bytes SHA1 (patch-aa) = 35072979d009ff4a0d110e64aeac99e2f7a584cc -SHA1 (patch-ab) = c54333e760b012b14af906ea9e9e442e0cf12ee2 +SHA1 (patch-ab) = 18d0cfe73125a91c671c70b5a523e9834fdc70e1 diff --git a/archivers/unalz/patches/patch-ab b/archivers/unalz/patches/patch-ab index e2fb9d94cb6..9c6ffa5300c 100644 --- a/archivers/unalz/patches/patch-ab +++ b/archivers/unalz/patches/patch-ab @@ -1,7 +1,12 @@ -$NetBSD: patch-ab,v 1.1 2005/03/02 16:18:47 minskim Exp $ +$NetBSD: patch-ab,v 1.2 2005/03/11 22:18:27 rillig Exp $ ---- UnAlz.cpp.orig 2004-11-27 10:28:17.000000000 -0600 -+++ UnAlz.cpp +This patch assumes that on NetBSD, every has the non-const +prototype argument for the second parameter of iconv(). This is true for +all but some release candidates of NetBSD-2.0, because either the +package converters/libiconv is used or there's a current . + +--- UnAlz.cpp.orig Sat Nov 27 17:28:17 2004 ++++ UnAlz.cpp Fri Mar 11 22:48:31 2005 @@ -18,6 +18,10 @@ # include // iconv.h ¶§¹®¿¡ ÇÊ¿ä #endif @@ -22,13 +27,12 @@ $NetBSD: patch-ab,v 1.1 2005/03/02 16:18:47 minskim Exp $ # include inline UINT16 unalz_le16toh(UINT16 a){return le16toh(a);} inline UINT32 unalz_le32toh(UINT32 a){return le32toh(a);} -@@ -376,7 +380,8 @@ BOOL CUnAlz::ReadLocalFileheader() +@@ -376,7 +380,7 @@ BOOL CUnAlz::ReadLocalFileheader() size_t size; char inbuf[ICONV_BUF_SIZE]; char outbuf[ICONV_BUF_SIZE]; -#if defined(__FreeBSD__) || defined(__CYGWIN__) -+#if defined(__FreeBSD__) || defined(__CYGWIN__) || \ -+ (defined(__NetBSD__) && __NetBSD_Version__ >= 200000000) ++#if defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__NetBSD__) const char *inptr = inbuf; #else char *inptr = inbuf; -- cgit v1.2.3