packages/utils/dosfstools/patches/002-linux_26_headers.patch
swalker 7b62f2c465 [packages] dosfstools: update to 3.0.12, add fsck script (#10697)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@30858 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-09 01:11:17 +00:00

55 lines
1.1 KiB
Diff

--- a/src/common.h
+++ b/src/common.h
@@ -19,7 +19,7 @@
can be found in /usr/share/common-licenses/GPL-3 file.
*/
-#include <asm/types.h>
+#include <linux/types.h>
#ifndef _COMMON_H
#define _COMMON_H
--- a/src/dosfsck.h
+++ b/src/dosfsck.h
@@ -31,7 +31,7 @@
#define _LINUX_STRING_H_ /* hack to avoid inclusion of <linux/string.h> */
#define _LINUX_FS_H /* hack to avoid inclusion of <linux/fs.h> */
-#include <asm/types.h>
+#include <linux/types.h>
#include <asm/byteorder.h>
#include <linux/msdos_fs.h>
--- a/src/file.c
+++ b/src/file.c
@@ -33,7 +33,7 @@
#define _LINUX_STRING_H_ /* hack to avoid inclusion of <linux/string.h> */
#define _LINUX_FS_H /* hack to avoid inclusion of <linux/fs.h> */
-#include <asm/types.h>
+#include <linux/types.h>
#include <linux/msdos_fs.h>
--- a/src/io.c
+++ b/src/io.c
@@ -39,6 +39,7 @@
#include <sys/ioctl.h>
#include <errno.h>
#include <fcntl.h>
+#include <linux/types.h>
#include <linux/fd.h>
#include "dosfsck.h"
--- a/src/mkdosfs.c
+++ b/src/mkdosfs.c
@@ -63,7 +63,7 @@
#include <time.h>
#include <errno.h>
-#include <asm/types.h>
+#include <linux/types.h>
#if __BYTE_ORDER == __BIG_ENDIAN