X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yportenv_single.h;h=8fd0da57d595014bf874a146d850ddce35168c17;hp=42892b87ffa9023cb09c10a7eba0564a89fcb3b9;hb=f6a8cdab85cba8cfba3d6c44b99957e4e299670b;hpb=4aab7ea4c9b8fb1bb9b375476a9faf70d29871b1 diff --git a/yportenv_single.h b/yportenv_single.h index 42892b8..8fd0da5 100644 --- a/yportenv_single.h +++ b/yportenv_single.h @@ -13,7 +13,6 @@ * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL. */ - #ifndef __YPORTENV_LINUX_H__ #define __YPORTENV_LINUX_H__ @@ -30,6 +29,7 @@ #include #include #include +#include #define YCHAR char #define YUCHAR unsigned char @@ -61,10 +61,9 @@ #define YAFFS_ROOT_MODE 0755 #define YAFFS_LOSTNFOUND_MODE 0700 - #define Y_CURRENT_TIME CURRENT_TIME.tv_sec #define Y_TIME_CONVERT(x) (x).tv_sec - + #define yaffs_sum_cmp(x, y) ((x) == (y)) #define yaffs_strcmp(a, b) strcmp(a, b) @@ -76,8 +75,6 @@ #define compile_time_assertion(assertion) \ ({ int x = __builtin_choose_expr(assertion, 0, (void)0); (void) x; }) - - #ifndef Y_DUMP_STACK #define Y_DUMP_STACK() do { } while (0) #endif @@ -91,5 +88,4 @@ } while (0) #endif - #endif