summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/include')
-rw-r--r--newlib/libc/include/sys/types.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h
index 823a9c0f5..17f9306ac 100644
--- a/newlib/libc/include/sys/types.h
+++ b/newlib/libc/include/sys/types.h
@@ -171,12 +171,16 @@ typedef signed char pid_t;
typedef int pid_t;
#endif
+#if defined(__rtems__)
+typedef _mode_t mode_t;
+#endif
+
#ifndef __CYGWIN__
typedef long key_t;
#endif
typedef _ssize_t ssize_t;
-#ifndef __CYGWIN__
+#if !defined(__CYGWIN__) && !defined(__rtems__)
#ifdef __MS_types__
typedef char * addr_t;
typedef int mode_t;