summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny van Dyk <kugelfang@gentoo.org>2005-06-21 20:42:12 +0000
committerDanny van Dyk <kugelfang@gentoo.org>2005-06-21 20:42:12 +0000
commit56425d237e25481e6b968a7834aa38bdaab1d592 (patch)
treeea669a4b5bd66ae29cc9589cdb96d4b2de04f3c7 /app-arch/unace/files
parentstable on alpha, wrt bug #96618 (diff)
downloadgentoo-2-56425d237e25481e6b968a7834aa38bdaab1d592.tar.gz
gentoo-2-56425d237e25481e6b968a7834aa38bdaab1d592.tar.bz2
gentoo-2-56425d237e25481e6b968a7834aa38bdaab1d592.zip
Fixed BUG #95110. Patch written by Juan J. García de Soria.
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'app-arch/unace/files')
-rw-r--r--app-arch/unace/files/unace-1.2b-64bit.patch56
1 files changed, 56 insertions, 0 deletions
diff --git a/app-arch/unace/files/unace-1.2b-64bit.patch b/app-arch/unace/files/unace-1.2b-64bit.patch
new file mode 100644
index 000000000000..a90fc2752134
--- /dev/null
+++ b/app-arch/unace/files/unace-1.2b-64bit.patch
@@ -0,0 +1,56 @@
+diff -ur unace/declare.h unace-fixed/declare.h
+--- unace/declare.h 2002-08-24 01:17:19.000000000 +0200
++++ unace-fixed/declare.h 2005-06-05 12:23:11.000000000 +0200
+@@ -7,6 +7,23 @@
+ #ifndef __declare_h
+ #define __declare_h
+
++#ifdef UNIX
++
++#include <inttypes.h>
++
++typedef uint16_t USHORT;
++typedef int16_t SHORT ;
++typedef uint16_t UWORD ;
++typedef int16_t WORD ;
++typedef uint32_t ULONG ;
++typedef int32_t LONG ;
++typedef uint8_t UCHAR ;
++typedef int8_t CHAR ;
++typedef unsigned UINT ;
++typedef int INT ;
++
++#else /* UNIX */
++
+ #ifdef AMIGA
+
+ #include <exec/types.h>
+@@ -27,6 +44,7 @@
+ typedef unsigned UINT ;
+ typedef int INT ;
+
++#endif /* UNIX */
+
+ #endif /* __declare_h */
+
+diff -ur unace/unace.c unace-fixed/unace.c
+--- unace/unace.c 2005-06-05 12:21:43.000000000 +0200
++++ unace-fixed/unace.c 2005-06-05 12:24:39.000000000 +0200
+@@ -516,7 +516,7 @@
+ tpsize+= fhead.PSIZE;
+ }
+ if (!f_err)
+- printf("%02u.%02u.%02u|%02u:%02u|%c%c%9lu|%9lu|%4u%%|%c%s\n",
++ printf("%02u.%02u.%02u|%02u:%02u|%c%c%9u|%9u|%4u%%|%c%s\n",
+ ts_day (ti), ts_month(ti), ts_year(ti)%100,
+ ts_hour(ti), ts_min (ti),
+ fhead.HEAD_FLAGS & ACE_SP_BEF ? '<' : ' ',
+@@ -529,7 +529,7 @@
+ }
+ if (!f_err)
+ {
+- printf("\n %9lu|%9lu|%4u%%| %u file%s",
++ printf("\n %9u|%9u|%4u%%| %u file%s",
+ psize,
+ size,
+ percentage(psize, size),