This is the mail archive of the
newlib-cvs@sourceware.org
mailing list for the newlib project.
[newlib-cygwin] Include <machine/endian.h> in <sys/types.h>
- From: Corinna Vinschen <corinna at sourceware dot org>
- To: newlib-cvs at sourceware dot org
- Date: 15 Apr 2016 12:55:23 -0000
- Subject: [newlib-cygwin] Include <machine/endian.h> in <sys/types.h>
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=40928e19e4a5b0a1a6e60bec658a70961feb93b7
commit 40928e19e4a5b0a1a6e60bec658a70961feb93b7
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date: Fri Apr 15 13:44:27 2016 +0200
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>
Diff:
---
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