pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/archivers/unalz Get useful definitions of unalz_le*toh...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/99b78914cf14
branches:  trunk
changeset: 501907:99b78914cf14
user:      tv <tv%pkgsrc.org@localhost>
date:      Mon Oct 31 15:04:17 2005 +0000

description:
Get useful definitions of unalz_le*toh() on Interix.

diffstat:

 archivers/unalz/distinfo         |   4 ++--
 archivers/unalz/patches/patch-ab |  15 +++++++++++----
 2 files changed, 13 insertions(+), 6 deletions(-)

diffs (52 lines):

diff -r 429718daea05 -r 99b78914cf14 archivers/unalz/distinfo
--- a/archivers/unalz/distinfo  Mon Oct 31 14:59:30 2005 +0000
+++ b/archivers/unalz/distinfo  Mon Oct 31 15:04:17 2005 +0000
@@ -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 -r 429718daea05 -r 99b78914cf14 archivers/unalz/patches/patch-ab
--- a/archivers/unalz/patches/patch-ab  Mon Oct 31 14:59:30 2005 +0000
+++ b/archivers/unalz/patches/patch-ab  Mon Oct 31 15:04:17 2005 +0000
@@ -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 @@
  
  #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 @@
  #     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];



Home | Main Index | Thread Index | Old Index