teach it that amd64 is little endian

This commit is contained in:
pvalchev 2005-06-09 22:16:06 +00:00
parent dcb68b12cd
commit f796d55ec4

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-bytesex_h,v 1.1 2005/06/09 22:16:06 pvalchev Exp $
--- bytesex.h.orig Thu Jun 9 15:36:20 2005
+++ bytesex.h Thu Jun 9 15:36:29 2005
@@ -9,7 +9,8 @@
#if defined(__i386__) \
|| defined(__alpha__) \
- || (defined(__mips__) && (defined(MIPSEL) || defined (__MIPSEL__)))
+ || (defined(__mips__) && (defined(MIPSEL) || defined (__MIPSEL__))) \
+ || defined(__amd64__)
#define BYTE_ORDER_LITTLE_ENDIAN
#elif defined(__mc68000__) \
|| defined (__sparc__) \