--- 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
@@ -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