[PATCH 16/18] Include <machine/endian.h> in <sys/types.h>

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Apr 14 11:54:45 UTC 2016


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.huber at 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




More information about the devel mailing list