060-remove_kernel_includes.patch 828 B

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