1 Submitted By: Jim Gifford (jim at linuxfromscratch dot org)
3 Initial Package Version: 2.6
5 Upstream Status: Accepted
6 Description: Fixes Compile Issues with the 2.6 Kernel
8 --- dosfstools-2.10/dosfsck/common.h.orig 2004-02-09 18:37:59.056737458 +0000
9 +++ dosfstools-2.10/dosfsck/common.h 2004-02-09 18:38:18.333392952 +0000
12 /* Written 1993 by Werner Almesberger */
14 +#include <linux/version.h>
15 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
17 + #include <asm/types.h>
19 + #define MSDOS_FAT12 4084 /* maximum number of clusters in a 12 bit FAT */
24 --- dosfstools-2.10/dosfsck/file.c.orig 2004-02-09 18:40:52.016728845 +0000
25 +++ dosfstools-2.10/dosfsck/file.c 2004-02-09 18:40:03.665117865 +0000
27 #define _LINUX_STAT_H /* hack to avoid inclusion of <linux/stat.h> */
28 #define _LINUX_STRING_H_ /* hack to avoid inclusion of <linux/string.h>*/
29 #define _LINUX_FS_H /* hack to avoid inclusion of <linux/fs.h> */
31 +#include <linux/version.h>
32 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
34 + #include <asm/types.h>
38 #include <linux/msdos_fs.h>
41 --- dosfstools-2.10/dosfsck/dosfsck.h.orig 2004-02-09 18:57:11.022870974 +0000
42 +++ dosfstools-2.10/dosfsck/dosfsck.h 2004-02-09 18:56:20.628614393 +0000
44 #define _LINUX_STAT_H /* hack to avoid inclusion of <linux/stat.h> */
45 #define _LINUX_STRING_H_ /* hack to avoid inclusion of <linux/string.h>*/
46 #define _LINUX_FS_H /* hack to avoid inclusion of <linux/fs.h> */
48 +#include <linux/version.h>
49 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
51 + #include <asm/types.h>
52 + #include <asm/byteorder.h>
56 #include <linux/msdos_fs.h>
58 /* 2.1 kernels use le16_to_cpu() type functions for CF_LE_W & Co., but don't
59 --- dosfstools-2.10/mkdosfs/mkdosfs.c.orig 2004-02-09 18:31:41.997157413 +0000
60 +++ dosfstools-2.10/mkdosfs/mkdosfs.c 2004-02-09 18:34:07.311945252 +0000
65 +#include <linux/version.h>
66 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
68 + #include <asm/types.h>
72 #if __BYTE_ORDER == __BIG_ENDIAN
74 #include <asm/byteorder.h>