diff --git a/headers/posix/endian.h b/headers/posix/endian.h index ba93bb128a..2b9df1a3ad 100644 --- a/headers/posix/endian.h +++ b/headers/posix/endian.h @@ -16,11 +16,11 @@ #if defined(__HAIKU_LITTLE_ENDIAN) # define LITTLE_ENDIAN 1234 -# define BIG_ENDIAN 0 +# define BIG_ENDIAN 4321 # define BYTE_ORDER LITTLE_ENDIAN #elif defined(__HAIKU_BIG_ENDIAN) # define BIG_ENDIAN 4321 -# define LITTLE_ENDIAN 0 +# define LITTLE_ENDIAN 1234 # define BYTE_ORDER BIG_ENDIAN #endif @@ -28,4 +28,4 @@ #define __LITTLE_ENDIAN LITTLE_ENDIAN #define __BYTE_ORDER BYTE_ORDER -#endif /* _ENDIAN_H_ */ +#endif /* _ENDIAN_H_ */ \ No newline at end of file diff --git a/headers/posix/sys/types.h b/headers/posix/sys/types.h index 64d497eba9..28ddc6b27f 100644 --- a/headers/posix/sys/types.h +++ b/headers/posix/sys/types.h @@ -122,6 +122,7 @@ struct _pthread_spinlock { }; +#include #include #include #include