diff options
Diffstat (limited to 'direct')
-rw-r--r-- | direct/yaffsfs.h | 4 | ||||
-rw-r--r-- | direct/yportenv.h | 15 |
2 files changed, 19 insertions, 0 deletions
diff --git a/direct/yaffsfs.h b/direct/yaffsfs.h index fbf6ad5..19d1121 100644 --- a/direct/yaffsfs.h +++ b/direct/yaffsfs.h @@ -25,6 +25,10 @@ #include "yaffscfg.h" #include "yportenv.h" +#ifdef __rtems__ +#include <sys/types.h> +typedef __loff_t loff_t; +#endif //typedef long off_t; //typedef long dev_t; 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> |