From 0d24562615cd32fbcde869a683a5aa1eea15d252 Mon Sep 17 00:00:00 2001 From: Alexey Dokuchaev Date: Sun, 12 Feb 2012 09:09:18 +0000 Subject: - Fix bad work with data types between architectures which resulted in immediate segfault when being run on e.g. amd64 - Fix wrong length when reading block into structure (probably a typo) - Other minor non-functional fixes PR: ports/161664 Submitted by: Cray Elliott --- archivers/deutex/files/patch-src-deutex.h | 33 +++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 archivers/deutex/files/patch-src-deutex.h (limited to 'archivers/deutex/files/patch-src-deutex.h') diff --git a/archivers/deutex/files/patch-src-deutex.h b/archivers/deutex/files/patch-src-deutex.h new file mode 100644 index 000000000000..20e713558adb --- /dev/null +++ b/archivers/deutex/files/patch-src-deutex.h @@ -0,0 +1,33 @@ +--- src/deutex.h.orig 1999-12-31 07:20:22.000000000 +0800 ++++ src/deutex.h 2012-02-12 16:53:51.000000000 +0800 +@@ -31,23 +31,13 @@ + #define DeuSF for DOS .EXE Unix Linux OS/2 + *********************************************/ + +-#if defined (__alpha) /*__ALPHA__ for Alpha processor?*/ +-/*long = int64 on a 64bit processor*/ +-typedef char Int8; +-typedef short Int16; +-typedef int Int32; +-typedef unsigned char UInt8; +-typedef unsigned short UInt16; +-typedef unsigned int UInt32; +-#else +-/*long = Int32 on a 32 bit processor*/ +-typedef char Int8; +-typedef short Int16; +-typedef long Int32; +-typedef unsigned char UInt8; +-typedef unsigned short UInt16; +-typedef unsigned long UInt32; +-#endif ++#include ++typedef int8_t Int8; ++typedef int16_t Int16; ++typedef int32_t Int32; ++typedef uint8_t UInt8; ++typedef uint16_t UInt16; ++typedef uint32_t UInt32; + + #if defined DeuTex + #if defined DeuSF -- cgit v1.2.3