diff options
Diffstat (limited to 'common/arch.h')
-rw-r--r-- | common/arch.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/arch.h b/common/arch.h index 4c1f0807..f7d7c335 100644 --- a/common/arch.h +++ b/common/arch.h @@ -22,7 +22,9 @@ #define ARCH_H /* check endianess */ -#if __BYTE_ORDER == __LITTLE_ENDIAN +#if defined(__sparc__) +#define B_ENDIAN +#elif __BYTE_ORDER == __LITTLE_ENDIAN #define L_ENDIAN #elif __BYTE_ORDER == __BIG_ENDIAN #define B_ENDIAN |