0034-third_party-libzip-resolve-macro-redefined-issue.patch 866 B

123456789101112131415161718192021222324252627282930
  1. From dc340078649edd82249bf87b993dba23dbcea455 Mon Sep 17 00:00:00 2001
  2. From: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
  3. Date: Tue, 19 Jul 2022 01:12:17 +0000
  4. Subject: [PATCH 34/51] third_party: libzip: resolve macro redefined issue
  5. Signed-off-by: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
  6. ---
  7. third_party/libzip/src/lib/compat.h | 8 --------
  8. 1 file changed, 8 deletions(-)
  9. diff --git a/third_party/libzip/src/lib/compat.h b/third_party/libzip/src/lib/compat.h
  10. index d88be1aa344e..2ea8766db7fd 100644
  11. --- a/third_party/libzip/src/lib/compat.h
  12. +++ b/third_party/libzip/src/lib/compat.h
  13. @@ -184,12 +184,4 @@ typedef char bool;
  14. #endif
  15. #endif
  16. -#ifndef S_ISDIR
  17. -#define S_ISDIR(mode) (((mode)&S_IFMT) == S_IFDIR)
  18. -#endif
  19. -
  20. -#ifndef S_ISREG
  21. -#define S_ISREG(mode) (((mode)&S_IFMT) == S_IFREG)
  22. -#endif
  23. -
  24. #endif /* compat.h */
  25. --
  26. 2.25.1