X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=tools%2Fmkimage%2Fpatches%2F060-remove_kernel_includes.patch;fp=tools%2Fmkimage%2Fpatches%2F060-remove_kernel_includes.patch;h=b408bb10f2f81a92073ae9a42cee0aaba1267b09;hb=bb735bed5c96cf3f730df123f488949e54bd3776;hp=0000000000000000000000000000000000000000;hpb=627882f043c66d625b4ab11e5ede23283b9df9b8;p=openwrt.git 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 ++#endif + + #endif /* _LINUX_POSIX_TYPES_H */ +--- a/include/linux/types.h ++++ b/include/linux/types.h +@@ -6,7 +6,6 @@ + #endif + + #include +-#include + #include + + #ifndef __KERNEL_STRICT_NAMES