X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=direct%2Fyportenv.h;h=5a79f93583b963d715b0dee9a0b533363c1511e1;hb=HEAD;hp=d931f8127525bfe96c2b98a105ccc752fd9b462e;hpb=1f3d64d1d804fef6715126dead54bf30b176c67e;p=yaffs2.git diff --git a/direct/yportenv.h b/direct/yportenv.h index d931f81..5a79f93 100644 --- a/direct/yportenv.h +++ b/direct/yportenv.h @@ -17,6 +17,25 @@ #define __YPORTENV_H__ +#ifdef __rtems__ + +#include +#include +#include +#include + +#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 CONFIG_YAFFS_DEFINES_TYPES 1 +#define CONFIG_YAFFS_USE_32_BIT_TIME_T 1 +#define NO_Y_INLINE 1 +#define loff_t off_t + +#endif /* __rtems__ */ + /* Definition of types */ #ifdef CONFIG_YAFFS_DEFINES_TYPES typedef unsigned char u8; @@ -26,7 +45,6 @@ typedef unsigned long long u64; typedef signed int s32; #endif - #ifdef CONFIG_YAFFS_PROVIDE_DEFS /* File types */