MINGW-packages/mingw-w64-python3.13/0124-Declare-timeval-for-MINGW.patch
Christoph Reiter 04c9ed3700 python3.13: Add 3.13.7
* add libb2 as dep
* remove "-Wl,--large-address-aware", default now via makepkg
* remove 2to3 logic, no longer in Python
2025-09-08 22:02:30 +02:00

23 lines
607 B
Diff

From 6b5135da26a22eaa7d339a75338f3db23297da4c Mon Sep 17 00:00:00 2001
From: Alexey Pavlov <alexpux@gmail.com>
Date: Thu, 28 Aug 2025 15:16:26 +0300
Subject: [PATCH 124/N] Declare timeval for MINGW
---
Include/internal/pycore_time.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Include/internal/pycore_time.h b/Include/internal/pycore_time.h
index 205ac5d..3cfd192 100644
--- a/Include/internal/pycore_time.h
+++ b/Include/internal/pycore_time.h
@@ -58,7 +58,7 @@ extern "C" {
#endif
-#ifdef __clang__
+#if defined(__clang__) || defined(__MINGW32__)
struct timeval;
#endif