200-backport_arm64_fuse_kernel_h_clean_includes.patch 715 B

123456789101112131415161718192021222324252627282930
  1. From 914871b20a901e3e1e981c92bc42b1c93b7ab81b Mon Sep 17 00:00:00 2001
  2. From: Riku Voipio <riku.voipio@linaro.org>
  3. Date: Thu, 07 Feb 2013 11:04:21 +0000
  4. Subject: fuse_kernel.h: clean includes
  5. Use <linux/types.h> for linux and define types used for other operating systems
  6. using <stdint.h> types.
  7. ---
  8. (limited to 'include/fuse_kernel.h')
  9. --- a/include/fuse_kernel.h
  10. +++ b/include/fuse_kernel.h
  11. @@ -88,12 +88,16 @@
  12. #ifndef _LINUX_FUSE_H
  13. #define _LINUX_FUSE_H
  14. -#include <sys/types.h>
  15. +#ifdef __linux__
  16. +#include <linux/types.h>
  17. +#else
  18. +#include <stdint.h>
  19. #define __u64 uint64_t
  20. #define __s64 int64_t
  21. #define __u32 uint32_t
  22. #define __s32 int32_t
  23. #define __u16 uint16_t
  24. +#endif
  25. /*
  26. * Version negotiation: