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>
This commit is contained in:
Sebastian Huber 2016-04-15 13:44:27 +02:00 committed by Corinna Vinschen
parent 7656cefc07
commit 40928e19e4
1 changed files with 1 additions and 0 deletions

View File

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