X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yportenv.h;h=ebb4f92041dd1e582f89e1e96b8eadf7e40e677b;hp=cb79d9b2ccc3c2b360663a14e191fae2f096571c;hb=757a553001be4016e9c5d8880648d3703f34b10e;hpb=4a700fe570d217c2c5df87070db7c2652bc0eaaf diff --git a/yportenv.h b/yportenv.h index cb79d9b..ebb4f92 100644 --- a/yportenv.h +++ b/yportenv.h @@ -41,6 +41,7 @@ #if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19)) #include #endif + #include #include #include @@ -48,6 +49,7 @@ #include #include #include +#include #define YCHAR char #define YUCHAR unsigned char @@ -86,7 +88,7 @@ #define Y_TIME_CONVERT(x) (x) #endif -#define yaffs_SumCompare(x, y) ((x) == (y)) +#define yaffs_sum_cmp(x, y) ((x) == (y)) #define yaffs_strcmp(a, b) strcmp(a, b) #define TENDSTR "\n" @@ -144,7 +146,7 @@ #define YAFFS_ROOT_MODE 0755 #define YAFFS_LOSTNFOUND_MODE 0700 -#define yaffs_SumCompare(x, y) ((x) == (y)) +#define yaffs_sum_cmp(x, y) ((x) == (y)) #define yaffs_strcmp(a, b) strcmp(a, b) #else @@ -209,6 +211,10 @@ #define EINVAL 22 #endif +#ifndef ENFILE +#define ENFILE 23 +#endif + #ifndef EBADF #define EBADF 9 #endif