summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/sys/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/include/sys/config.h')
-rw-r--r--newlib/libc/include/sys/config.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/config.h b/newlib/libc/include/sys/config.h
index f8bd8cdb9..0cf4b1e57 100644
--- a/newlib/libc/include/sys/config.h
+++ b/newlib/libc/include/sys/config.h
@@ -127,6 +127,7 @@ typedef unsigned int __uint32_t;
#if defined(__CYGWIN32__) || defined(__CYGWIN__)
+#define __FILENAME_MAX__ (260 - 1 /* NUL */)
#if defined(__INSIDE_CYGWIN__) || defined(_COMPILING_NEWLIB)
#define __IMPORT
#else
@@ -134,6 +135,10 @@ typedef unsigned int __uint32_t;
#endif
#endif
+#if defined(__rtems__)
+#define __FILENAME_MAX__ 255
+#endif
+
#ifndef __IMPORT
#define __IMPORT
#endif