diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-05-06 10:30:29 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-05-06 10:30:29 +0000 |
commit | 6e298c343d12c47ec9fe5e9e4b11227a021bda4f (patch) | |
tree | 42900e54531d081f6a46f17cc49a9233a2196fe4 | |
parent | 528c719a3ff0df2fdcc4b25e574bb82fc5f08550 (diff) | |
download | master-187ad058-6e298c343d12c47ec9fe5e9e4b11227a021bda4f.tar.gz master-187ad058-6e298c343d12c47ec9fe5e9e4b11227a021bda4f.tar.bz2 master-187ad058-6e298c343d12c47ec9fe5e9e4b11227a021bda4f.zip |
tools/mkimage: unbreak non-linux build again
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36556 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | tools/mkimage/patches/060-remove_kernel_includes.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tools/mkimage/patches/060-remove_kernel_includes.patch b/tools/mkimage/patches/060-remove_kernel_includes.patch new file mode 100644 index 0000000000..b408bb10f2 --- /dev/null +++ b/tools/mkimage/patches/060-remove_kernel_includes.patch @@ -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 |