fix-compile-on-mingw-w64.patch 554 B

12345678910111213141516171819202122232425
  1. From 7c9611d9940b7dd55a06f458284ef231cb8ef65e Mon Sep 17 00:00:00 2001
  2. From: Redbeanw44602 <[email protected]>
  3. Date: Thu, 24 Jul 2025 13:43:26 +0800
  4. Subject: [PATCH] fix compile on mingw-w64.
  5. ---
  6. ext/solv_xfopen.h | 2 +-
  7. 1 file changed, 1 insertion(+), 1 deletion(-)
  8. diff --git a/ext/solv_xfopen.h b/ext/solv_xfopen.h
  9. index 24b68252..92255361 100644
  10. --- a/ext/solv_xfopen.h
  11. +++ b/ext/solv_xfopen.h
  12. @@ -10,7 +10,7 @@
  13. #include <stddef.h>
  14. -#ifdef _WIN32
  15. +#ifdef _MSC_VER
  16. #include <BaseTsd.h>
  17. typedef SSIZE_T ssize_t;
  18. #else
  19. --
  20. 2.50.1