packages/utils/dosfstools/patches/002-linux_26_headers.patch
florian b1c9178391 [package] update dosfstools to 3.0.5, split utilities into their own packages (#5885)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@17758 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-27 12:43:15 +00:00

57 lines
1.2 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
@@ -32,8 +32,8 @@
#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 <asm/byteorder.h>
+#include <linux/types.h>
+#include <asm/byteorder.h>
#include <linux/msdos_fs.h>
--- a/src/file.c
+++ b/src/file.c
@@ -34,7 +34,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
@@ -37,6 +37,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