X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs%2F.git;a=blobdiff_plain;f=yportenv.h;h=1d4428f4f35dde299c4f48eed52b7015ba6522f8;hp=0c640372a2290c0030882405eda0c7b5eac07a18;hb=7b5f93e758d963355b31ce0a1f0eafa16074f35d;hpb=0446bf9a8d4cb2703587b7c99bd01270cfcd7d96 diff --git a/yportenv.h b/yportenv.h index 0c64037..1d4428f 100644 --- a/yportenv.h +++ b/yportenv.h @@ -15,7 +15,7 @@ * * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL. * - * $Id: yportenv.h,v 1.12 2004-10-04 23:24:21 charles Exp $ + * $Id: yportenv.h,v 1.14 2004-10-10 18:03:35 charles Exp $ * */ @@ -49,6 +49,13 @@ #define YAFFS_ROOT_MODE 0666 #define YAFFS_LOSTNFOUND_MODE 0666 +#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)) +#define Y_CURRENT_TIME CURRENT_TIME.tv_sec +#define Y_TIME_CONVERT(x) (x).tv_sec +#else +#define Y_CURRENT_TIME CURRENT_TIME +#define Y_TIME_CONVERT(x) (x) +#endif #define yaffs_SumCompare(x,y) ((x) == (y)) #define yaffs_strcmp(a,b) strcmp(a,b) @@ -71,6 +78,8 @@ #include "stdio.h" #include "string.h" +#include "devextras.h" + #define YMALLOC(x) malloc(x) #define YFREE(x) free(x) @@ -124,3 +133,5 @@ extern unsigned yaffs_traceMask; #endif #endif + +