sys/types: include endian.h, and fix endian definitions.
* Defining LITTLE/BIG_ENDIAN as 0 breaks some feature test macros, particularly in autoconf. Checking with FreeBSD, their macros define a non-zero value as well. References: - https://github.com/freebsd/freebsd/blob/master/sys/x86/include/endian.h - http://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/c.m4#n1584 Change-Id: I61b0bbad74e2bf5248464a5c15e504b9f45bea7f Reviewed-on: https://review.haiku-os.org/c/haiku/+/1526 Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
committed by
Adrien Destugues
parent
ab56137e24
commit
d7818b5aae
@@ -122,6 +122,7 @@ struct _pthread_spinlock {
|
||||
};
|
||||
|
||||
|
||||
#include <endian.h>
|
||||
#include <null.h>
|
||||
#include <size_t.h>
|
||||
#include <time.h>
|
||||
|
||||
Reference in New Issue
Block a user