tools/mkimage: unbreak non-linux build again
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 36556
This commit is contained in:
parent
9c1ed6447b
commit
4053e50591
1 changed files with 35 additions and 0 deletions
35
tools/mkimage/patches/060-remove_kernel_includes.patch
Normal file
35
tools/mkimage/patches/060-remove_kernel_includes.patch
Normal file
|
@ -0,0 +1,35 @@
|
|||
--- a/include/compiler.h
|
||||
+++ b/include/compiler.h
|
||||
@@ -53,6 +53,11 @@
|
||||
typedef uint16_t __u16;
|
||||
typedef uint32_t __u32;
|
||||
typedef unsigned int uint;
|
||||
+typedef uint64_t __u64;
|
||||
+#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
|
||||
@@ -43,6 +43,8 @@
|
||||
/* 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
|
||||
@@ -6,7 +6,6 @@
|
||||
#endif
|
||||
|
||||
#include <linux/posix_types.h>
|
||||
-#include <asm/types.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#ifndef __KERNEL_STRICT_NAMES
|
Loading…
Reference in a new issue