yaffs: More clean up
[yaffs2.git] / yportenv.h
index cb79d9b2ccc3c2b360663a14e191fae2f096571c..38a3595fc34969f0203d555b92eeeff22254d288 100644 (file)
@@ -41,6 +41,7 @@
 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19))
 #include <linux/config.h>
 #endif
+
 #include <linux/kernel.h>
 #include <linux/mm.h>
 #include <linux/sched.h>
@@ -86,7 +87,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