File 0010-Fixed-invalid-inclusion-of-io.h-from-Python-source-c.patch of Package mingw64-python3
From 1c832a6c0ab7961fe14153e8b8c21b9a840fc410 Mon Sep 17 00:00:00 2001
From: Ralf Habacker <ralf.habacker@freenet.de>
Date: Wed, 31 Aug 2022 16:18:45 +0200
Subject: [PATCH 10/12] Fixed invalid inclusion of io.h from Python source code
on Mingw
---
cmake/config-mingw/pyconfig.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/cmake/config-mingw/pyconfig.h b/cmake/config-mingw/pyconfig.h
index 987cd53..fea95b2 100644
--- a/cmake/config-mingw/pyconfig.h
+++ b/cmake/config-mingw/pyconfig.h
@@ -135,7 +135,9 @@ WIN32 is still required for the locale module.
#define HAVE_CLOCK
#define HAVE_STRERROR
+#ifndef __MINGW32__
#include <io.h>
+#endif
#include <stdio.h>
/* 64 bit ints are usually spelt __int64 unless compiler has overridden */
--
2.35.3