MINGW-packages/mingw-w64-python/0087-configure-build-mmap-module-on-win32.patch
2024-11-03 19:29:19 +01:00

25 lines
976 B
Diff

From 561337ef0291a0b303ae5dbb534067c2a9c62472 Mon Sep 17 00:00:00 2001
From: Naveen M K <naveen521kk@gmail.com>
Date: Fri, 23 Jun 2023 20:15:38 +0530
Subject: [PATCH 087/N] configure: build `mmap` module on win32
---
configure.ac | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 999dd68..efd17d1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7895,7 +7895,9 @@ PY_STDLIB_MOD([fcntl],
[], [test "$ac_cv_header_sys_ioctl_h" = "yes" -a "$ac_cv_header_fcntl_h" = "yes"],
[], [$FCNTL_LIBS])
PY_STDLIB_MOD([mmap],
- [], [test "$ac_cv_header_sys_mman_h" = "yes" -a "$ac_cv_header_sys_stat_h" = "yes"])
+ [], m4_flatten([test "$ac_cv_header_sys_mman_h" = "yes"
+ -a "$ac_cv_header_sys_stat_h" = "yes"
+ -o "$MACHDEP" = "win32"]))
PY_STDLIB_MOD([_socket],
[], m4_flatten([test "$ac_cv_header_sys_socket_h" = "yes"
-a "$ac_cv_header_sys_types_h" = "yes"