1
0

0002-add-declaration-for-mkdir.patch 820 B

1234567891011121314151617181920212223242526272829
  1. From 6c38b6f544b55f9fc554f0fe22e2cbaddfaed7f8 Mon Sep 17 00:00:00 2001
  2. From: Nicole Mazzuca <[email protected]>
  3. Date: Tue, 22 Sep 2020 14:15:04 -0700
  4. Subject: [PATCH 2/2] add declaration for mkdir
  5. It's invalid in C99 to implicitly declare mkdir
  6. ---
  7. contrib/minizip/miniunz.c | 4 ++++
  8. 1 file changed, 4 insertions(+)
  9. diff --git a/contrib/minizip/miniunz.c b/contrib/minizip/miniunz.c
  10. index 3d65401..5341af2 100644
  11. --- a/contrib/minizip/miniunz.c
  12. +++ b/contrib/minizip/miniunz.c
  13. @@ -12,6 +12,10 @@
  14. Copyright (C) 2009-2010 Mathias Svensson ( http://result42.com )
  15. */
  16. +#if !defined(_WIN32)
  17. +#include <sys/stat.h>
  18. +#endif
  19. +
  20. #if (!defined(_WIN32)) && (!defined(WIN32)) && (!defined(__APPLE__))
  21. #ifndef __USE_FILE_OFFSET64
  22. #define __USE_FILE_OFFSET64
  23. --
  24. 2.24.3 (Apple Git-128)