On 2003-12-27, Shaun Jackman wrote: > I have a package that fails to build on ia64.
The attached patch will help. Torsten -- Torsten Werner Dresden University of Technology [EMAIL PROTECTED] +49 351 46336711 / +49 162 3123004 http://www.twerner42.de/ telefax: +49 351 46336809
diff -ru simulavr-0.1.1/src/config-h.in simulavr-0.1.1.new/src/config-h.in --- simulavr-0.1.1/src/config-h.in 2002-07-08 22:21:44.000000000 +0200 +++ simulavr-0.1.1.new/src/config-h.in 2003-12-28 15:16:47.116191040 +0100 @@ -1,3 +1,5 @@ +#include <stdint.h> + /* src/config-h.in. Generated automatically from configure.in by autoheader. */ /* Define if you don't have vprintf but do have _doprnt. */ @@ -60,47 +62,12 @@ /* Build support for curses display */ #undef USE_CURSES - -/* Define some psuedo types for hiding the system type sizes we - need to use. */ - -#if defined (SIZEOF_UNSIGNED_CHAR) && (SIZEOF_UNSIGNED_CHAR == 1) -# define UNSIGNED_8_BIT_T unsigned char -# define SIGNED_8_BIT_T char -#else -# error Can not determine 8 bit type -#endif - -#if defined (SIZEOF_UNSIGNED_SHORT) && (SIZEOF_UNSIGNED_SHORT == 2) -# define UNSIGNED_16_BIT_T unsigned short -# define SIGNED_16_BIT_T short -#else -# error Can not determine 16 bit type -#endif - -/* On some systems, a long is 64 bits (ie dec unix) */ - -#if defined (SIZEOF_UNSIGNED_LONG) && (SIZEOF_UNSIGNED_LONG == 4) -# define UNSIGNED_32_BIT_T unsigned long -# define SIGNED_32_BIT_T long -#else -# error Can not determine 32 bit type -#endif - -#if defined (SIZEOF_UNSIGNED_LONG_LONG) && (SIZEOF_UNSIGNED_LONG_LONG == 8) -# define UNSIGNED_64_BIT_T unsigned long long -# define SIGNED_64_BIT_T long long -#else -# error Can not determine 64 bit type -#endif - - -typedef UNSIGNED_8_BIT_T byte; /* 8 bits */ -typedef UNSIGNED_16_BIT_T word; /* 16 bits */ -typedef UNSIGNED_32_BIT_T dword; /* 32 bits */ -typedef UNSIGNED_64_BIT_T qword; /* 64 bits */ - -typedef SIGNED_8_BIT_T sbyte; -typedef SIGNED_16_BIT_T sword; -typedef SIGNED_32_BIT_T sdword; -typedef SIGNED_64_BIT_T sqword; +typedef uint8_t byte; /* 8 bits */ +typedef uint16_t word; /* 16 bits */ +typedef uint32_t dword; /* 32 bits */ +typedef uint64_t qword; /* 64 bits */ + +typedef int8_t sbyte; +typedef int16_t sword; +typedef int32_t sdword; +typedef int64_t sqword;

