--- a/dosfsck/common.h +++ b/dosfsck/common.h @@ -4,9 +4,7 @@ #include #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) -# define __KERNEL__ -# include -# undef __KERNEL__ +#include # define MSDOS_FAT12 4084 /* maximum number of clusters in a 12 bit FAT */ #endif --- a/dosfsck/file.c +++ b/dosfsck/file.c @@ -18,9 +18,7 @@ #include #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) -# define __KERNEL__ -# include -# undef __KERNEL__ +#include #endif #include --- a/dosfsck/io.c +++ b/dosfsck/io.c @@ -19,6 +19,10 @@ #include #include #include +#include +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) +#include +#endif #include #include "dosfsck.h" --- a/mkdosfs/mkdosfs.c +++ b/mkdosfs/mkdosfs.c @@ -68,9 +68,7 @@ #include #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) -# define __KERNEL__ -# include -# undef __KERNEL__ +#include #endif #if __BYTE_ORDER == __BIG_ENDIAN --- a/dosfsck/dosfsck.h +++ b/dosfsck/dosfsck.h @@ -15,13 +15,7 @@ #define _LINUX_FS_H /* hack to avoid inclusion of */ #include -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) -# define __KERNEL__ -# include -# include -# undef __KERNEL__ -#endif - +#include #include #undef CF_LE_W