This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH v2 16/18] Include <machine/endian.h> in <sys/types.h>
- From: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- To: newlib at sourceware dot org
- Cc: devel at rtems dot org, Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- Date: Fri, 15 Apr 2016 13:44:27 +0200
- Subject: [PATCH v2 16/18] Include <machine/endian.h> in <sys/types.h>
- Authentication-results: sourceware.org; auth=none
- References: <1460720669-26900-1-git-send-email-sebastian dot huber at embedded-brains dot de>
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