From: Derrick Brashear Date: Tue, 19 Dec 2006 04:30:12 +0000 (+0000) Subject: STABLE14-kernel-endianness-test-fix-20061218 X-Git-Tag: openafs-stable-1_4_3rc1~47 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=8cfa378549be890bc5ed56171e8193c7c456fb95;p=packages%2Fo%2Fopenafs.git STABLE14-kernel-endianness-test-fix-20061218 FIXES 47893 ok, so, when we're in the kernel, do something (cherry picked from commit d229d72fa7719b947460674cdba203aab0c2a548) --- diff --git a/acconfig.h b/acconfig.h index e19503097..948ce0641 100644 --- a/acconfig.h +++ b/acconfig.h @@ -16,6 +16,12 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg } # if BYTE_ORDER == BIG_ENDIAN # define WORDS_BIGENDIAN 1 # endif +# else +# if defined(AUTOCONF_FOUND_BIGENDIAN) +# define WORDS_BIGENDIAN 1 +# else +# undef WORDS_BIGENDIAN +# endif # endif # else # if defined(AUTOCONF_FOUND_BIGENDIAN) @@ -25,11 +31,11 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg } # endif # endif #else -#if defined(__BIG_ENDIAN__) -#define WORDS_BIGENDIAN 1 -#else -#undef WORDS_BIGENDIAN -#endif +# if defined(__BIG_ENDIAN__) +# define WORDS_BIGENDIAN 1 +# else +# undef WORDS_BIGENDIAN +# endif #endif #undef AFS_AFSDB_ENV