2013-05-06 10:30:29 +00:00
|
|
|
--- a/include/compiler.h
|
|
|
|
+++ b/include/compiler.h
|
2019-09-11 13:25:17 +00:00
|
|
|
@@ -66,6 +66,10 @@ typedef uint8_t __u8;
|
2013-05-06 10:30:29 +00:00
|
|
|
typedef uint16_t __u16;
|
|
|
|
typedef uint32_t __u32;
|
|
|
|
typedef unsigned int uint;
|
|
|
|
+#ifndef linux
|
|
|
|
+typedef int __kernel_daddr_t;
|
|
|
|
+typedef unsigned int __kernel_ino_t;
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
#define uswap_16(x) \
|
|
|
|
((((x) & 0xff00) >> 8) | \
|
|
|
|
--- a/include/linux/posix_types.h
|
|
|
|
+++ b/include/linux/posix_types.h
|
2014-11-29 22:43:59 +00:00
|
|
|
@@ -43,6 +43,8 @@ typedef void (*__kernel_sighandler_t)(in
|
2013-05-06 10:30:29 +00:00
|
|
|
/* Type of a SYSV IPC key. */
|
|
|
|
typedef int __kernel_key_t;
|
|
|
|
|
|
|
|
+#ifdef linux
|
|
|
|
#include <asm/posix_types.h>
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
#endif /* _LINUX_POSIX_TYPES_H */
|
|
|
|
--- a/include/linux/types.h
|
|
|
|
+++ b/include/linux/types.h
|
2014-05-21 09:42:33 +00:00
|
|
|
@@ -2,7 +2,6 @@
|
|
|
|
#define _LINUX_TYPES_H
|
2013-05-06 10:30:29 +00:00
|
|
|
|
|
|
|
#include <linux/posix_types.h>
|
|
|
|
-#include <asm/types.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
#ifndef __KERNEL_STRICT_NAMES
|