Use LITTLE_ENDIAN on amd64 arch (fixes SunOS and ABI=64).

This commit is contained in:
fhajny 2012-03-09 10:31:49 +00:00
parent ab0e5e8551
commit f5b6064572
2 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
$NetBSD: distinfo,v 1.42 2012/01/20 15:26:08 wiz Exp $
$NetBSD: distinfo,v 1.43 2012/03/09 10:31:49 fhajny Exp $
SHA1 (unrarsrc-4.1.4.tar.gz) = ae4b1e2c99e96527c4a97f980daa547499f42a0f
RMD160 (unrarsrc-4.1.4.tar.gz) = 0bb200c01f665142b7581b1b40ef1047dca13c57
Size (unrarsrc-4.1.4.tar.gz) = 157135 bytes
SHA1 (patch-ac) = ca8bcbc1ce6723a2cd576067c6fbd171abb0c711
SHA1 (patch-ac) = 14192cf81b59442d5b4c2e9212330d8998135ec2
SHA1 (patch-consio.cpp) = 341dd714b165fabf3dec0213b9bb3e57dcc146f5

View file

@ -1,4 +1,4 @@
$NetBSD: patch-ac,v 1.2 2008/10/09 13:27:35 wiz Exp $
$NetBSD: patch-ac,v 1.3 2012/03/09 10:31:49 fhajny Exp $
--- os.hpp.orig 2008-09-16 14:24:56.000000000 +0000
+++ os.hpp
@ -16,7 +16,7 @@ $NetBSD: patch-ac,v 1.2 2008/10/09 13:27:35 wiz Exp $
#endif
#endif
+#if defined(__i386) || defined(i386) || defined(__i386__)
+#if defined(__i386) || defined(i386) || defined(__i386__) || defined(__amd64) || defined(amd64) || defined(__amd64__)
+ #ifndef LITTLE_ENDIAN
+ #define LITTLE_ENDIAN
+ #endif