summaryrefslogtreecommitdiffstats
path: root/freebsd
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2022-05-18 09:38:12 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-05-18 09:48:35 +0200
commit15bcf12ffaf34d3022ec6d4a68eeaf874beeb541 (patch)
tree3f0d35541007bb15ec85e8c4c31c6d1ebb17c2e4 /freebsd
parentlibc: Avoid conflict with Newlib __sinit() (diff)
downloadrtems-libbsd-15bcf12ffaf34d3022ec6d4a68eeaf874beeb541.tar.bz2
libc: Include <sys/types.h> for RTEMS
This fixes an issue with a recent Newlib which no longer includes <sys/types.h> in <stdio.h>.
Diffstat (limited to 'freebsd')
-rw-r--r--freebsd/lib/libc/include/libc_private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/freebsd/lib/libc/include/libc_private.h b/freebsd/lib/libc/include/libc_private.h
index fb3a4bb2..4a699e93 100644
--- a/freebsd/lib/libc/include/libc_private.h
+++ b/freebsd/lib/libc/include/libc_private.h
@@ -36,8 +36,12 @@
#ifndef _LIBC_PRIVATE_H_
#define _LIBC_PRIVATE_H_
+#ifndef __rtems__
#include <sys/_types.h>
#include <sys/_pthreadtypes.h>
+#else /* __rtems__ */
+#include <sys/types.h>
+#endif /* __rtems__ */
/*
* This global flag is non-zero when a process has created one