This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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@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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]