Include <machine/endian.h> in <sys/types.h> if __BSD_VISIBLE for BSD compatibility. This is in line with glibc <sys/types.h>.
Signed-off-by: Sebastian Huber <sebastian.hu...@embedded-brains.de> --- newlib/libc/include/sys/types.h | 1 + 1 file changed, 1 insertion(+) diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h index f02f170..57b74ef 100644 --- a/newlib/libc/include/sys/types.h +++ b/newlib/libc/include/sys/types.h @@ -62,6 +62,7 @@ typedef quad_t * qaddr_t; # include <stddef.h> #if __BSD_VISIBLE +#include <machine/endian.h> #include <sys/select.h> # define physadr physadr_t # define quad quad_t -- 1.8.4.5 _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel