Files
MINGW-packages/mingw-w64-python/0041-pycore_fileutils-add-MINGW-support.patch
2026-01-07 22:17:09 +01:00

27 lines
926 B
Diff

From acfc6c0d0a5558caa1f9d973bf822c287ad653ed Mon Sep 17 00:00:00 2001
From: Christoph Reiter <reiter.christoph@gmail.com>
Date: Thu, 17 Jun 2021 18:52:18 +0530
Subject: [PATCH 041/N] pycore_fileutils: add MINGW support
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Co-authored-by: Алексей <alexey.pawlow@gmail.com>
---
Include/internal/pycore_fileutils.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Include/internal/pycore_fileutils.h b/Include/internal/pycore_fileutils.h
index 13f86b0..51386b0 100644
--- a/Include/internal/pycore_fileutils.h
+++ b/Include/internal/pycore_fileutils.h
@@ -12,7 +12,7 @@ extern "C" {
/* A routine to check if a file descriptor can be select()-ed. */
-#ifdef _MSC_VER
+#ifdef MS_WINDOWS
/* On Windows, any socket fd can be select()-ed, no matter how high */
#define _PyIsSelectable_fd(FD) (1)
#else