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:
Jessica Hamilton
2019-08-27 10:02:45 +00:00
committed by Adrien Destugues
parent ab56137e24
commit d7818b5aae
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -122,6 +122,7 @@ struct _pthread_spinlock {
};
#include <endian.h>
#include <null.h>
#include <size_t.h>
#include <time.h>