|
@@ -107,10 +107,12 @@ struct acct_v3
|
|
|
#define ACORE 0x08 /* ... dumped core */
|
|
#define ACORE 0x08 /* ... dumped core */
|
|
|
#define AXSIG 0x10 /* ... was killed by a signal */
|
|
#define AXSIG 0x10 /* ... was killed by a signal */
|
|
|
|
|
|
|
|
-#ifdef __BIG_ENDIAN
|
|
|
|
|
|
|
+#if defined(__BYTE_ORDER) ? __BYTE_ORDER == __BIG_ENDIAN : defined(__BIG_ENDIAN)
|
|
|
#define ACCT_BYTEORDER 0x80 /* accounting file is big endian */
|
|
#define ACCT_BYTEORDER 0x80 /* accounting file is big endian */
|
|
|
-#else
|
|
|
|
|
|
|
+#elif defined(__BYTE_ORDER) ? __BYTE_ORDER == __LITTLE_ENDIAN : defined(__LITTLE_ENDIAN)
|
|
|
#define ACCT_BYTEORDER 0x00 /* accounting file is little endian */
|
|
#define ACCT_BYTEORDER 0x00 /* accounting file is little endian */
|
|
|
|
|
+#else
|
|
|
|
|
+#error unspecified endianness
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __KERNEL__
|
|
#ifndef __KERNEL__
|