diff options
author | Sebastien Bourdeauducq <sebastien@milkymist.org> | 2011-07-22 11:31:28 +0200 |
---|---|---|
committer | Sebastien Bourdeauducq <sebastien@milkymist.org> | 2011-07-22 11:31:28 +0200 |
commit | 113c1217865682ab081ab8a2f7deabdaa9f9869f (patch) | |
tree | 3e94175c13f0d8835c8eb24894db3c52a004128b /direct | |
parent | 2df51cdb98e799c4d10b4cc7dd7e8858aa79e7d8 (diff) |
RTEMS support patch by Sebastian Huber
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> |