0001-exfatprogs-add-missing-include-sys-types.h.patch 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. From da03ba80944668817c374a816b8b0c515af0ac89 Mon Sep 17 00:00:00 2001
  2. From: James Hilliard <james.hilliard1@gmail.com>
  3. Date: Fri, 17 Apr 2020 13:10:49 -0600
  4. Subject: [PATCH] exfatprogs: add missing #include <sys/types.h>
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Fixes:
  9. ../include/libexfat.h:72:1: error: unknown type name ‘ssize_t’
  10. ssize_t exfat_read(int fd, void *buf, size_t size, off_t offset);
  11. ^
  12. ../include/libexfat.h:72:52: error: unknown type name ‘off_t’
  13. ssize_t exfat_read(int fd, void *buf, size_t size, off_t offset);
  14. ^
  15. ../include/libexfat.h:73:1: error: unknown type name ‘ssize_t’
  16. ssize_t exfat_write(int fd, void *buf, size_t size, off_t offset);
  17. ^
  18. ../include/libexfat.h:73:53: error: unknown type name ‘off_t’
  19. ssize_t exfat_write(int fd, void *buf, size_t size, off_t offset);
  20. ^
  21. ../include/libexfat.h:75:1: error: unknown type name ‘ssize_t’
  22. ssize_t exfat_utf16_enc(const char *in_str, __u16 *out_str, size_t out_size);
  23. ^
  24. ../include/libexfat.h:76:1: error: unknown type name ‘ssize_t’
  25. ssize_t exfat_utf16_dec(const __u16 *in_str, size_t in_len,
  26. ^
  27. Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
  28. [Upstream status: https://github.com/exfatprogs/exfatprogs/pull/50]
  29. ---
  30. include/exfat_tools.h | 1 +
  31. 1 file changed, 1 insertion(+)
  32. diff --git a/include/exfat_tools.h b/include/exfat_tools.h
  33. index 45de4aa..105fd2a 100644
  34. --- a/include/exfat_tools.h
  35. +++ b/include/exfat_tools.h
  36. @@ -6,6 +6,7 @@
  37. #ifndef _EXFAT_TOOLS_H
  38. #include <stdbool.h>
  39. +#include <sys/types.h>
  40. #include <wchar.h>
  41. #define KB (1024)
  42. --
  43. 2.20.1