--- chmlib-0.36/src/chm_lib.c.orig 2005-09-09 14:42:27.000000000 +0200 +++ chmlib-0.36/src/chm_lib.c 2005-09-19 14:26:33.000000000 +0200 @@ -160,14 +160,15 @@ /* Sparc */ /* MIPS */ /* PPC */ -#elif __i386__ || __sun || __sgi || __ppc__ +#elif __i386__ || __sun || __sgi || __ppc__ || __linux__ +#include typedef unsigned char UChar; -typedef short Int16; -typedef unsigned short UInt16; -typedef long Int32; -typedef unsigned long UInt32; -typedef long long Int64; -typedef unsigned long long UInt64; +typedef int16_t Int16; +typedef uint16_t UInt16; +typedef int32_t Int32; +typedef uint32_t UInt32; +typedef int64_t Int64; +typedef uint64_t UInt64; /* x86-64 */ /* Note that these may be appropriate for other 64-bit machines. */