fix dosfstools compile
git-svn-id: svn://svn.openwrt.org/openwrt/packages@12125 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
732a28c5d7
commit
3ba603eb8f
@ -1,6 +1,5 @@
|
||||
diff -urN dosfstools-2.11/dosfsck/common.h dosfstools-2.11.new/dosfsck/common.h
|
||||
--- dosfstools-2.11/dosfsck/common.h 2004-02-25 10:07:01.000000000 +0100
|
||||
+++ dosfstools-2.11.new/dosfsck/common.h 2006-12-09 16:45:12.000000000 +0100
|
||||
--- a/dosfsck/common.h
|
||||
+++ b/dosfsck/common.h
|
||||
@@ -4,9 +4,7 @@
|
||||
|
||||
#include <linux/version.h>
|
||||
@ -12,9 +11,8 @@ diff -urN dosfstools-2.11/dosfsck/common.h dosfstools-2.11.new/dosfsck/common.h
|
||||
# define MSDOS_FAT12 4084 /* maximum number of clusters in a 12 bit FAT */
|
||||
#endif
|
||||
|
||||
diff -urN dosfstools-2.11/dosfsck/file.c dosfstools-2.11.new/dosfsck/file.c
|
||||
--- dosfstools-2.11/dosfsck/file.c 2004-02-25 10:07:38.000000000 +0100
|
||||
+++ dosfstools-2.11.new/dosfsck/file.c 2006-12-09 16:45:22.000000000 +0100
|
||||
--- a/dosfsck/file.c
|
||||
+++ b/dosfsck/file.c
|
||||
@@ -18,9 +18,7 @@
|
||||
|
||||
#include <linux/version.h>
|
||||
@ -26,9 +24,8 @@ diff -urN dosfstools-2.11/dosfsck/file.c dosfstools-2.11.new/dosfsck/file.c
|
||||
#endif
|
||||
|
||||
#include <linux/msdos_fs.h>
|
||||
diff -urN dosfstools-2.11/dosfsck/io.c dosfstools-2.11.new/dosfsck/io.c
|
||||
--- dosfstools-2.11/dosfsck/io.c 2005-03-12 16:33:58.000000000 +0100
|
||||
+++ dosfstools-2.11.new/dosfsck/io.c 2006-12-09 16:48:43.000000000 +0100
|
||||
--- a/dosfsck/io.c
|
||||
+++ b/dosfsck/io.c
|
||||
@@ -19,6 +19,10 @@
|
||||
#include <sys/ioctl.h>
|
||||
#include <errno.h>
|
||||
@ -40,9 +37,8 @@ diff -urN dosfstools-2.11/dosfsck/io.c dosfstools-2.11.new/dosfsck/io.c
|
||||
#include <linux/fd.h>
|
||||
|
||||
#include "dosfsck.h"
|
||||
diff -urN dosfstools-2.11/mkdosfs/mkdosfs.c dosfstools-2.11.new/mkdosfs/mkdosfs.c
|
||||
--- dosfstools-2.11/mkdosfs/mkdosfs.c 2005-03-12 17:12:16.000000000 +0100
|
||||
+++ dosfstools-2.11.new/mkdosfs/mkdosfs.c 2006-12-09 16:44:57.000000000 +0100
|
||||
--- a/mkdosfs/mkdosfs.c
|
||||
+++ b/mkdosfs/mkdosfs.c
|
||||
@@ -68,9 +68,7 @@
|
||||
|
||||
#include <linux/version.h>
|
||||
@ -54,3 +50,20 @@ diff -urN dosfstools-2.11/mkdosfs/mkdosfs.c dosfstools-2.11.new/mkdosfs/mkdosfs.
|
||||
#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 <linux/fs.h> */
|
||||
|
||||
#include <linux/version.h>
|
||||
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
|
||||
-# define __KERNEL__
|
||||
-# include <asm/types.h>
|
||||
-# include <asm/byteorder.h>
|
||||
-# undef __KERNEL__
|
||||
-#endif
|
||||
-
|
||||
+#include <linux/types.h>
|
||||
#include <linux/msdos_fs.h>
|
||||
|
||||
#undef CF_LE_W
|
||||
|
Loading…
x
Reference in New Issue
Block a user