060-remove_kernel_includes.patch 803 B

12345678910111213141516171819202122232425262728293031323334
  1. --- a/include/compiler.h
  2. +++ b/include/compiler.h
  3. @@ -66,6 +66,10 @@ typedef uint8_t __u8;
  4. typedef uint16_t __u16;
  5. typedef uint32_t __u32;
  6. typedef unsigned int uint;
  7. +#ifndef linux
  8. +typedef int __kernel_daddr_t;
  9. +typedef unsigned int __kernel_ino_t;
  10. +#endif
  11. #define uswap_16(x) \
  12. ((((x) & 0xff00) >> 8) | \
  13. --- a/include/linux/posix_types.h
  14. +++ b/include/linux/posix_types.h
  15. @@ -43,6 +43,8 @@ typedef void (*__kernel_sighandler_t)(in
  16. /* Type of a SYSV IPC key. */
  17. typedef int __kernel_key_t;
  18. +#ifdef linux
  19. #include <asm/posix_types.h>
  20. +#endif
  21. #endif /* _LINUX_POSIX_TYPES_H */
  22. --- a/include/linux/types.h
  23. +++ b/include/linux/types.h
  24. @@ -2,7 +2,6 @@
  25. #define _LINUX_TYPES_H
  26. #include <linux/posix_types.h>
  27. -#include <asm/types.h>
  28. #include <stdbool.h>
  29. #ifndef __KERNEL_STRICT_NAMES