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
This commit is contained in:
Elliott Hughes 2012-12-11 16:14:54 -08:00
parent 0521ff8234
commit 4fa35d8ae8
4 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@
#define _SYS_ENDIAN_H_
#include <sys/cdefs.h>
#include <machine/endian.h>
#include <machine/_types.h>
#define _LITTLE_ENDIAN 1234