diff options
Diffstat (limited to 'meta/packages/dosfstools/files/dosfstools-2.10-kernel-2.6.patch')
-rw-r--r-- | meta/packages/dosfstools/files/dosfstools-2.10-kernel-2.6.patch | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/meta/packages/dosfstools/files/dosfstools-2.10-kernel-2.6.patch b/meta/packages/dosfstools/files/dosfstools-2.10-kernel-2.6.patch new file mode 100644 index 0000000000..3ecafc324b --- /dev/null +++ b/meta/packages/dosfstools/files/dosfstools-2.10-kernel-2.6.patch | |||
@@ -0,0 +1,74 @@ | |||
1 | Submitted By: Jim Gifford (jim at linuxfromscratch dot org) | ||
2 | Date: 2004-02-09 | ||
3 | Initial Package Version: 2.6 | ||
4 | Origin: Jim Gifford | ||
5 | Upstream Status: Accepted | ||
6 | Description: Fixes Compile Issues with the 2.6 Kernel | ||
7 | |||
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 | ||
10 | @@ -2,6 +2,13 @@ | ||
11 | |||
12 | /* Written 1993 by Werner Almesberger */ | ||
13 | |||
14 | +#include <linux/version.h> | ||
15 | +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) | ||
16 | + #define __KERNEL__ | ||
17 | + #include <asm/types.h> | ||
18 | + #undef __KERNEL__ | ||
19 | + #define MSDOS_FAT12 4084 /* maximum number of clusters in a 12 bit FAT */ | ||
20 | +#endif | ||
21 | |||
22 | #ifndef _COMMON_H | ||
23 | #define _COMMON_H | ||
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 | ||
26 | @@ -15,6 +15,14 @@ | ||
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> */ | ||
30 | + | ||
31 | +#include <linux/version.h> | ||
32 | +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) | ||
33 | + #define __KERNEL__ | ||
34 | + #include <asm/types.h> | ||
35 | + #undef __KERNEL__ | ||
36 | +#endif | ||
37 | + | ||
38 | #include <linux/msdos_fs.h> | ||
39 | |||
40 | #include "common.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 | ||
43 | @@ -13,6 +13,15 @@ | ||
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> */ | ||
47 | + | ||
48 | +#include <linux/version.h> | ||
49 | +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) | ||
50 | + #define __KERNEL__ | ||
51 | + #include <asm/types.h> | ||
52 | + #include <asm/byteorder.h> | ||
53 | + #undef __KERNEL__ | ||
54 | +#endif | ||
55 | + | ||
56 | #include <linux/msdos_fs.h> | ||
57 | |||
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 | ||
61 | @@ -66,6 +66,13 @@ | ||
62 | #include <time.h> | ||
63 | #include <errno.h> | ||
64 | |||
65 | +#include <linux/version.h> | ||
66 | +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) | ||
67 | + #define __KERNEL__ | ||
68 | + #include <asm/types.h> | ||
69 | + #undef __KERNEL__ | ||
70 | +#endif | ||
71 | + | ||
72 | #if __BYTE_ORDER == __BIG_ENDIAN | ||
73 | |||
74 | #include <asm/byteorder.h> | ||