diff options
author | Elliott Hughes <enh@google.com> | 2014-11-21 18:34:36 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-11-21 18:34:36 -0800 |
commit | ee369fb319cfb8f46ec6f2c7fbc102b60147da1b (patch) | |
tree | a7238bc60ae5304e7a940fd1b8168a6e4d8874f4 /libc/arch-arm64/include/machine/endian.h | |
parent | 80838f190ad9454d1a9ebc2204cbfbbb22086f56 (diff) | |
download | bionic-ee369fb319cfb8f46ec6f2c7fbc102b60147da1b.zip bionic-ee369fb319cfb8f46ec6f2c7fbc102b60147da1b.tar.gz bionic-ee369fb319cfb8f46ec6f2c7fbc102b60147da1b.tar.bz2 |
Bring our <machine/endian.h> files back in sync.
They'd drifted slightly which led to a compilation error in toybox,
which was assuming pid_t was defined. arm and arm64 were picking it
up via <endian.h> but x86 wasn't.
Change-Id: I58401e6c0066959dfc3b305b020876aaf7074bbf
Diffstat (limited to 'libc/arch-arm64/include/machine/endian.h')
-rw-r--r-- | libc/arch-arm64/include/machine/endian.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libc/arch-arm64/include/machine/endian.h b/libc/arch-arm64/include/machine/endian.h index 87a038d..4743733 100644 --- a/libc/arch-arm64/include/machine/endian.h +++ b/libc/arch-arm64/include/machine/endian.h @@ -29,9 +29,6 @@ #ifndef _AARCH64_ENDIAN_H_ #define _AARCH64_ENDIAN_H_ -#include <sys/types.h> -#include <sys/endian.h> - #ifdef __GNUC__ #define __swap16md(x) ({ \ @@ -49,10 +46,8 @@ #endif /* __GNUC__ */ -#if defined(__AARCH64EB__) -#define _BYTE_ORDER _BIG_ENDIAN -#else #define _BYTE_ORDER _LITTLE_ENDIAN -#endif +#include <sys/types.h> +#include <sys/endian.h> #endif /* _AARCH64_ENDIAN_H_ */ |