diff options
author | Elliott Hughes <enh@google.com> | 2012-12-11 16:14:54 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2012-12-11 16:17:33 -0800 |
commit | 4fa35d8ae80c175425e9525831d7b6a71a3ada60 (patch) | |
tree | aa349c2c944131991af7fcbcd91b1ab54c9c6b4e /libc/include | |
parent | 0521ff8234cafcc61060961b2f856fcf4dae1e7d (diff) | |
download | bionic-4fa35d8ae80c175425e9525831d7b6a71a3ada60.zip bionic-4fa35d8ae80c175425e9525831d7b6a71a3ada60.tar.gz bionic-4fa35d8ae80c175425e9525831d7b6a71a3ada60.tar.bz2 |
Fix <endian.h> and <sys/endian.h>.
Previously we'd been relying on getting the machine-specific <endian.h>
instead of the top-level <endian.h>, and <sys/endian.h> was basically broken.
Now, with this patch and the previous patch we should have <endian.h>
and <sys/endian.h> behaving the same. This is basically how NetBSD's endian.h
works, and was probably how ours was originally intended to work.
Bug: http://code.google.com/p/android/issues/detail?id=39824
Change-Id: I71de5a507e633de166013a658b5764df9e1aa09c
Diffstat (limited to 'libc/include')
-rw-r--r-- | libc/include/sys/endian.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/include/sys/endian.h b/libc/include/sys/endian.h index 00f4839..2a0c658 100644 --- a/libc/include/sys/endian.h +++ b/libc/include/sys/endian.h @@ -37,6 +37,7 @@ #define _SYS_ENDIAN_H_ #include <sys/cdefs.h> +#include <machine/endian.h> #include <machine/_types.h> #define _LITTLE_ENDIAN 1234 |