yaffs: More clean up.
[yaffs2.git] / yportenv_multi.h
similarity index 96%
rename from yportenv.h
rename to yportenv_multi.h
index ebb4f92041dd1e582f89e1e96b8eadf7e40e677b..3295ca0aeebc13e118001cdebe94ef38eec835a0 100644 (file)
@@ -41,7 +41,7 @@
 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19))
 #include <linux/config.h>
 #endif
-
+#include <linux/version.h>
 #include <linux/kernel.h>
 #include <linux/mm.h>
 #include <linux/sched.h>
 #include <linux/vmalloc.h>
 #include <linux/xattr.h>
 #include <linux/list.h>
+#include <linux/types.h>
+#include <linux/fs.h>
+#include <linux/stat.h>
+#include <linux/sort.h>
 
 #define YCHAR char
 #define YUCHAR unsigned char
@@ -61,6 +65,8 @@
 #define yaffs_strnlen(s,m)     strnlen(s,m)
 #define yaffs_sprintf         sprintf
 #define yaffs_toupper(a)       toupper(a)
+#define yaffs_sort(base, n, sz, cmp_fn) sort(base, n, sz, cmp_fn, NULL)
+
 
 #define Y_INLINE __inline__