diff options
author | sbd <sbd@pkgsrc.org> | 2012-06-28 05:21:19 +0000 |
---|---|---|
committer | sbd <sbd@pkgsrc.org> | 2012-06-28 05:21:19 +0000 |
commit | 472eb47fa00d8a67a9bd3e5277ac2023802b50b1 (patch) | |
tree | 60077946ec8820b63a913ffc015dc77cb6718fd7 /archivers | |
parent | 419505ac00eaeafe6822b24a83214a8f2ef7def7 (diff) | |
download | pkgsrc-472eb47fa00d8a67a9bd3e5277ac2023802b50b1.tar.gz |
Set the type for get_crc_table() based on zlib version.
Diffstat (limited to 'archivers')
-rw-r--r-- | archivers/unalz/distinfo | 4 | ||||
-rw-r--r-- | archivers/unalz/patches/patch-ab | 9 |
2 files changed, 8 insertions, 5 deletions
diff --git a/archivers/unalz/distinfo b/archivers/unalz/distinfo index a0e6abe6c1b..eba8e4da3cd 100644 --- a/archivers/unalz/distinfo +++ b/archivers/unalz/distinfo @@ -1,10 +1,10 @@ -$NetBSD: distinfo,v 1.18 2012/06/27 08:04:18 sbd Exp $ +$NetBSD: distinfo,v 1.19 2012/06/28 05:21:19 sbd Exp $ SHA1 (unalz-0.61.tgz) = a6cab2a02b7f44957211e694b7d8d144840b2255 RMD160 (unalz-0.61.tgz) = 68cb957aeacfc8452e01637f7e0a50939d515ab6 Size (unalz-0.61.tgz) = 138152 bytes SHA1 (patch-UnAlz.h) = c21ec95926b716adf3c6d7145a17440bbb1e81ad SHA1 (patch-aa) = 327fd080040946fe7a0707698f90d7709a2d3c5b -SHA1 (patch-ab) = 7addf1fd9135f1d2b1fc1ddb24db5a5d676c406e +SHA1 (patch-ab) = 0289c84cabc47c4be22fe2a36e06888a10d283b0 SHA1 (patch-ac) = 00c6255437f4ebdf3676787ed63cc838a16476d4 SHA1 (patch-ad) = 0a830c3995600d0c25ae1b32c00df2d0604571d7 diff --git a/archivers/unalz/patches/patch-ab b/archivers/unalz/patches/patch-ab index e3543507fde..d43fb9b7df4 100644 --- a/archivers/unalz/patches/patch-ab +++ b/archivers/unalz/patches/patch-ab @@ -1,4 +1,4 @@ -$NetBSD: patch-ab,v 1.11 2012/06/27 08:04:18 sbd Exp $ +$NetBSD: patch-ab,v 1.12 2012/06/28 05:21:19 sbd Exp $ * Use system/buildlinked headers. * The correct type for get_crc_table with zlib 1.2.7 is z_crc_t* @@ -13,12 +13,15 @@ $NetBSD: patch-ab,v 1.11 2012/06/27 08:04:18 sbd Exp $ #include "UnAlz.h"
// utime ΗΤΌφ Γ³Έ®
-@@ -1891,7 +1891,7 @@ void CUnAlz::DecryptingData(int nSize, B +@@ -1891,7 +1891,11 @@ void CUnAlz::DecryptingData(int nSize, B ////////////////////////////////////////////////////////////////////////////////////////////////////
UINT32 CUnAlz::CRC32(UINT32 l, BYTE c)
{
-- const unsigned long *CRC_TABLE = get_crc_table();
++#if ZLIB_VERNUM >= 0x1270
+ const z_crc_t *CRC_TABLE = get_crc_table();
++#else
+ const unsigned long *CRC_TABLE = get_crc_table();
++#endif
return CRC_TABLE[(l ^ c) & 0xff] ^ (l >> 8);
}
|