[packages] dosfstools: update to 3.0.12, add fsck script (#10697)
[packages.git] / utils / dosfstools / patches / 002-linux_26_headers.patch
1 --- a/src/common.h
2 +++ b/src/common.h
3 @@ -19,7 +19,7 @@
4     can be found in /usr/share/common-licenses/GPL-3 file.
5  */
6  
7 -#include <asm/types.h>
8 +#include <linux/types.h>
9  
10  #ifndef _COMMON_H
11  #define _COMMON_H
12 --- a/src/dosfsck.h
13 +++ b/src/dosfsck.h
14 @@ -31,7 +31,7 @@
15  #define _LINUX_STRING_H_       /* hack to avoid inclusion of <linux/string.h> */
16  #define _LINUX_FS_H            /* hack to avoid inclusion of <linux/fs.h> */
17  
18 -#include <asm/types.h>
19 +#include <linux/types.h>
20  #include <asm/byteorder.h>
21  
22  #include <linux/msdos_fs.h>
23 --- a/src/file.c
24 +++ b/src/file.c
25 @@ -33,7 +33,7 @@
26  #define _LINUX_STRING_H_       /* hack to avoid inclusion of <linux/string.h> */
27  #define _LINUX_FS_H            /* hack to avoid inclusion of <linux/fs.h> */
28  
29 -#include <asm/types.h>
30 +#include <linux/types.h>
31  
32  #include <linux/msdos_fs.h>
33  
34 --- a/src/io.c
35 +++ b/src/io.c
36 @@ -39,6 +39,7 @@
37  #include <sys/ioctl.h>
38  #include <errno.h>
39  #include <fcntl.h>
40 +#include <linux/types.h>
41  #include <linux/fd.h>
42  
43  #include "dosfsck.h"
44 --- a/src/mkdosfs.c
45 +++ b/src/mkdosfs.c
46 @@ -63,7 +63,7 @@
47  #include <time.h>
48  #include <errno.h>
49  
50 -#include <asm/types.h>
51 +#include <linux/types.h>
52  
53  #if __BYTE_ORDER == __BIG_ENDIAN
54