0001-read_file.h-include-sys-types.h.patch 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From 1fb08a352afada589f0b93af7a07c6fcd6da9bb8 Mon Sep 17 00:00:00 2001
  2. From: Bernd Kuhls <bernd.kuhls@t-online.de>
  3. Date: Mon, 21 Sep 2020 20:19:38 +0200
  4. Subject: [PATCH] read_file.h: include sys/types.h
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Fixes build error with uClibc and gcc-8.3.0:
  9. In file included from src/devtools/uk_dump.c:28:
  10. src/devtools/read_file.h:24:44: error: unknown type name ‘off_t’
  11. static size_t _read_file(const char *name, off_t min_size, off_t max_size, uint8_t **pdata)
  12. Upstream status: pending
  13. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  14. ---
  15. src/devtools/read_file.h | 1 +
  16. 1 file changed, 1 insertion(+)
  17. diff --git a/src/devtools/read_file.h b/src/devtools/read_file.h
  18. index 953b2ef..a5d185c 100644
  19. --- a/src/devtools/read_file.h
  20. +++ b/src/devtools/read_file.h
  21. @@ -19,6 +19,7 @@
  22. #include <stdio.h>
  23. #include <stdlib.h>
  24. +#include <sys/types.h>
  25. #include <errno.h>
  26. static size_t _read_file(const char *name, off_t min_size, off_t max_size, uint8_t **pdata)
  27. --
  28. 2.27.0