diff options
author | tv <tv@pkgsrc.org> | 2005-10-31 15:04:17 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 2005-10-31 15:04:17 +0000 |
commit | 75aaf50cb756a3762c9164ff8bb9bdf007aa7127 (patch) | |
tree | 23da8a352292731de215ca43dfd0e8f381b40d92 /archivers | |
parent | 8e896553eb05436d9861aaa75313d9143493d013 (diff) | |
download | pkgsrc-75aaf50cb756a3762c9164ff8bb9bdf007aa7127.tar.gz |
Get useful definitions of unalz_le*toh() on Interix.
Diffstat (limited to 'archivers')
-rw-r--r-- | archivers/unalz/distinfo | 4 | ||||
-rw-r--r-- | archivers/unalz/patches/patch-ab | 15 |
2 files changed, 13 insertions, 6 deletions
diff --git a/archivers/unalz/distinfo b/archivers/unalz/distinfo index 9e111d60043..5957dbd5a5a 100644 --- a/archivers/unalz/distinfo +++ b/archivers/unalz/distinfo @@ -1,9 +1,9 @@ -$NetBSD: distinfo,v 1.10 2005/10/22 18:12:09 rillig Exp $ +$NetBSD: distinfo,v 1.11 2005/10/31 15:04:17 tv Exp $ SHA1 (unalz-0.52.tgz) = fa5c99392e52661ca2c347cd4f147a7e203ac295 RMD160 (unalz-0.52.tgz) = 4200a3ac2a909bd8acdf28df13569e2bcb7d18ba Size (unalz-0.52.tgz) = 134048 bytes SHA1 (patch-aa) = 327fd080040946fe7a0707698f90d7709a2d3c5b -SHA1 (patch-ab) = d91002324d1e90c32dad3546e3a322cb84a968df +SHA1 (patch-ab) = b555f404dcc35c966c14f416ee9996b8c0ea497e SHA1 (patch-ac) = 00c6255437f4ebdf3676787ed63cc838a16476d4 SHA1 (patch-ad) = cc0951b807e25b5f8097583d674b5ed9ff24f5c7 diff --git a/archivers/unalz/patches/patch-ab b/archivers/unalz/patches/patch-ab index 2feb5468a0e..87124728c6e 100644 --- a/archivers/unalz/patches/patch-ab +++ b/archivers/unalz/patches/patch-ab @@ -1,6 +1,6 @@ -$NetBSD: patch-ab,v 1.6 2005/10/01 10:55:35 minskim Exp $ +$NetBSD: patch-ab,v 1.7 2005/10/31 15:04:17 tv Exp $ ---- UnAlz.cpp.orig 2005-07-02 07:40:29.000000000 -0700 +--- UnAlz.cpp.orig 2005-07-23 11:27:49.000000000 -0400 +++ UnAlz.cpp @@ -1,6 +1,6 @@ //#include "stdafx.h"
@@ -22,7 +22,14 @@ $NetBSD: patch-ab,v 1.6 2005/10/01 10:55:35 minskim Exp $ #define swapint64(Data) (INT64) ( (((Data)&0x00000000000000FFLL) << 56) | (((Data)&0x000000000000FF00LL) << 40) | (((Data)&0x0000000000FF0000LL) << 24) | (((Data)&0x00000000FF000000LL) << 8) | (((Data)&0x000000FF00000000LL) >> 8) | (((Data)&0x0000FF0000000000LL) >> 24) | (((Data)&0x00FF000000000000LL) >> 40) | (((Data)&0xFF00000000000000LL) >> 56) )
#define swapint32(a) ((((a)&0xff)<<24)+(((a>>8)&0xff)<<16)+(((a>>16)&0xff)<<8)+(((a>>24)&0xff)))
-@@ -45,7 +49,7 @@ +@@ -39,13 +43,13 @@ + //// byte-order : little to host ////
+ ////////////////////////////////////////////////////////////////////////////
+
+-#if defined(_WIN32) || defined(__CYGWIN__) // little to little
++#if defined(_WIN32) || defined(__CYGWIN__) || defined(__INTERIX) // little to little
+ inline UINT16 unalz_le16toh(UINT16 a){return a;}
+ inline UINT32 unalz_le32toh(UINT32 a){return a;}
inline UINT64 unalz_le64toh(UINT64 a){return a;}
#endif
@@ -31,7 +38,7 @@ $NetBSD: patch-ab,v 1.6 2005/10/01 10:55:35 minskim Exp $ # include <sys/endian.h>
inline UINT16 unalz_le16toh(UINT16 a){return le16toh(a);}
inline UINT32 unalz_le32toh(UINT32 a){return le32toh(a);}
-@@ -413,7 +417,7 @@ BOOL CUnAlz::ReadLocalFileheader()
+@@ -416,7 +420,7 @@ BOOL CUnAlz::ReadLocalFileheader()
size_t size;
char inbuf[ICONV_BUF_SIZE];
char outbuf[ICONV_BUF_SIZE];
|