projects
/
yaffs
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change yboot.c to LGPL as was intended
[yaffs/.git]
/
yportenv.h
diff --git
a/yportenv.h
b/yportenv.h
index 6f80d2bdb3277911520f63756ecb20a5dd77dc63..1d4428f4f35dde299c4f48eed52b7015ba6522f8 100644
(file)
--- a/
yportenv.h
+++ b/
yportenv.h
@@
-15,7
+15,7
@@
*
* Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
*
*
* Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
*
- * $Id: yportenv.h,v 1.1
1 2004-09-19 09:21:33
charles Exp $
+ * $Id: yportenv.h,v 1.1
4 2004-10-10 18:03:35
charles Exp $
*
*/
*
*/
@@
-33,6
+33,7
@@
// Linux kernel
#include "linux/kernel.h"
// Linux kernel
#include "linux/kernel.h"
+#include "linux/version.h"
#include "linux/mm.h"
#include "linux/string.h"
#include "linux/slab.h"
#include "linux/mm.h"
#include "linux/string.h"
#include "linux/slab.h"
@@
-48,6
+49,13
@@
#define YAFFS_ROOT_MODE 0666
#define YAFFS_LOSTNFOUND_MODE 0666
#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)
#define yaffs_SumCompare(x,y) ((x) == (y))
#define yaffs_strcmp(a,b) strcmp(a,b)
@@
-70,6
+78,8
@@
#include "stdio.h"
#include "string.h"
#include "stdio.h"
#include "string.h"
+#include "devextras.h"
+
#define YMALLOC(x) malloc(x)
#define YFREE(x) free(x)
#define YMALLOC(x) malloc(x)
#define YFREE(x) free(x)
@@
-123,3
+133,5
@@
extern unsigned yaffs_traceMask;
#endif
#endif
#endif
#endif
+
+