summaryrefslogtreecommitdiff
path: root/direct/yportenv.h
diff options
context:
space:
mode:
Diffstat (limited to 'direct/yportenv.h')
-rw-r--r--direct/yportenv.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/direct/yportenv.h b/direct/yportenv.h
index 939cd3a..223cae1 100644
--- a/direct/yportenv.h
+++ b/direct/yportenv.h
@@ -23,6 +23,21 @@ typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned u32;
+#ifdef __rtems__
+
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
+#include <errno.h>
+
+#define CONFIG_YAFFS_DIRECT 1
+#define CONFIG_YAFFS_SHORT_NAMES_IN_RAM 1
+#define CONFIG_YAFFS_YAFFS2 1
+#define CONFIG_YAFFS_PROVIDE_DEFS 1
+#define CONFIG_YAFFSFS_PROVIDE_VALUES 1
+#define NO_Y_INLINE 1
+
+#endif /* __rtems__ */
#ifndef WIN32
#include <sys/stat.h>