From dd979731c41d84d5e11cad418d55e4716e8fb4f2 Mon Sep 17 00:00:00 2001 From: Koichiro IWAO Date: Tue, 12 Aug 2014 18:04:26 +0900 Subject: [PATCH] common: fix check for big endian arches Fix for: https://bugzilla.redhat.com/show_bug.cgi?id=905411 --- common/arch.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/arch.h b/common/arch.h index 9fbca952..f928e590 100644 --- a/common/arch.h +++ b/common/arch.h @@ -19,10 +19,12 @@ #if !defined(ARCH_H) #define ARCH_H +#include + #if !(defined(L_ENDIAN) || defined(B_ENDIAN)) /* check endianess */ #if defined(__sparc__) || defined(__PPC__) || defined(__ppc__) || \ - defined(__hppa__) + defined(__hppa__) || (BYTE_ORDER == BIG_ENDIAN) #define B_ENDIAN #else #define L_ENDIAN