diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2002-04-01 05:50:44 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2002-04-01 05:50:44 +0000 |
commit | 8c63861cd5f2c11427a9d232e728a99bb7963b28 (patch) | |
tree | d5eafbb18a925da5f33a576e1c079ed584441b6f /emulators/swarm | |
parent | 2f6971562f407a888e7bc5019cc797dae7c95364 (diff) | |
download | pkgsrc-8c63861cd5f2c11427a9d232e728a99bb7963b28.tar.gz |
- fix detection of endianness (#ifdef sun4 is not adequate!)
- use the system header files to get int64_t instead of (incorrectly)
typedef'ing it.
- Fix compilation on big endian systems.
Diffstat (limited to 'emulators/swarm')
-rw-r--r-- | emulators/swarm/distinfo | 4 | ||||
-rw-r--r-- | emulators/swarm/patches/patch-aa | 40 | ||||
-rw-r--r-- | emulators/swarm/patches/patch-ac | 11 |
3 files changed, 54 insertions, 1 deletions
diff --git a/emulators/swarm/distinfo b/emulators/swarm/distinfo index ef1b371a8be..ee8c633d6b4 100644 --- a/emulators/swarm/distinfo +++ b/emulators/swarm/distinfo @@ -1,5 +1,7 @@ -$NetBSD: distinfo,v 1.3 2001/09/14 22:18:22 wiz Exp $ +$NetBSD: distinfo,v 1.4 2002/04/01 05:50:44 dmcmahill Exp $ SHA1 (swarm-0.57.tar.gz) = 63868d16472e4dcca2a595ea6c993abd5220c933 Size (swarm-0.57.tar.gz) = 386019 bytes +SHA1 (patch-aa) = e37efffc93a9991dbfe0ef613d3aca77d4204fd2 SHA1 (patch-ab) = 10279324142fdbe50a4525bd7285c7cd328f3875 +SHA1 (patch-ac) = 57f5103fde8c1380ddd78c58dfd57c5368d92bfd diff --git a/emulators/swarm/patches/patch-aa b/emulators/swarm/patches/patch-aa new file mode 100644 index 00000000000..4596e7afd23 --- /dev/null +++ b/emulators/swarm/patches/patch-aa @@ -0,0 +1,40 @@ +$NetBSD: patch-aa,v 1.3 2002/04/01 05:50:45 dmcmahill Exp $ + +fix tests for endianness and use our own header files to get +int64_t and uint64_t + +--- swarm_types.h.orig Tue Apr 10 09:46:10 2001 ++++ swarm_types.h +@@ -26,9 +26,10 @@ + #ifndef __SWARM_TYPES_H__ + #define __SWARM_TYPES_H__ + +-#ifdef sun4 ++#include <sys/endian.h> ++#if BYTE_ORDER == BIG_ENDIAN + #define __BIG_ENDIAN__ +-#else /* ix86 / alpha / arm32 */ ++#else + #define __LITTLE_ENDIAN__ + #endif + +@@ -45,6 +46,10 @@ + typedef unsigned short uint16_t; + typedef unsigned int uint32_t; + ++#ifdef __NetBSD__ ++#include <sys/types.h> ++#include <sys/inttypes.h> ++#else + #ifndef WIN32 + #ifndef __int8_t_defined + typedef long long int int64_t; +@@ -54,7 +59,7 @@ + typedef INT64 int64_t; + typedef UINT64 uint64_t; + #endif // !WIN32 +- ++#endif /* __NetBSD */ + typedef int bool_t; + + #ifndef WIN32 diff --git a/emulators/swarm/patches/patch-ac b/emulators/swarm/patches/patch-ac new file mode 100644 index 00000000000..f1455bbe3cd --- /dev/null +++ b/emulators/swarm/patches/patch-ac @@ -0,0 +1,11 @@ +$NetBSD: patch-ac,v 1.1 2002/04/01 05:50:46 dmcmahill Exp $ + +--- isa_be.h.orig Mon Nov 6 12:38:08 2000 ++++ isa_be.h Mon Apr 1 00:43:50 2002 +@@ -190,5 +190,5 @@ + uint32_t p : 1; + uint32_t u : 1; +- uint32_t psr : 1; ++ uint32_t s : 1; + uint32_t wb : 1; + uint32_t ls : 1; |