1 Index: user/flashw/flashw.c
2 ===================================================================
3 RCS file: /var/cvs/uClinux-dist/user/flashw/flashw.c,v
4 retrieving revision 1.1.1.6
5 diff -u -p -r1.1.1.6 flashw.c
6 --- user/flashw/flashw.c 12 Jul 2006 05:10:36 -0000 1.1.1.6
7 +++ user/flashw/flashw.c 7 Jan 2007 13:59:22 -0000
10 /*****************************************************************************/
17 #include <sys/ioctl.h>
18 #include <sys/types.h>
20 -#include <linux/config.h>
21 #include <linux/version.h>
23 -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,8)
24 -#include <mtd/mtd-user.h>
26 -#include <linux/mtd/mtd.h>
28 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18)
29 +# include <mtd/mtd-user.h>
31 +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,8)
32 +# include <linux/config.h>
34 +# include <mtd/mtd-user.h>
36 +# include <linux/mtd/mtd.h>
39 -#include <linux/blkmem.h>
40 +# include <linux/blkmem.h>
42 #if defined(CONFIG_NFTL_RW) && !defined(NFTL_MAJOR)
43 - #define NFTL_MAJOR 93
44 - #include <sys/mount.h>
45 +# define NFTL_MAJOR 93
46 +# include <sys/mount.h>