yaffs: More clean up
[yaffs2.git] / yportenv.h
index 83203c88ce6751008b70a26d995167ee795de71d..ebb4f92041dd1e582f89e1e96b8eadf7e40e677b 100644 (file)
@@ -49,6 +49,7 @@
 #include <linux/slab.h>
 #include <linux/vmalloc.h>
 #include <linux/xattr.h>
+#include <linux/list.h>
 
 #define YCHAR char
 #define YUCHAR unsigned char
@@ -87,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"
 #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
 #define EINVAL 22
 #endif
 
+#ifndef ENFILE
+#define ENFILE 23
+#endif
+
 #ifndef EBADF
 #define EBADF  9
 #endif