MINGW-packages/mingw-w64-python/0110-Enable-curses-library-on-MINGW.patch
2025-06-07 14:11:54 +02:00

29 lines
742 B
Diff

From ffe1a51f5955750236e1ec2da72f0e105a7c74af Mon Sep 17 00:00:00 2001
From: Naveen M K <naveen521kk@gmail.com>
Date: Mon, 1 Jan 2024 16:43:41 +0530
Subject: [PATCH 110/N] Enable curses library on MINGW
---
configure.ac | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/configure.ac b/configure.ac
index 2575149..c4dfe3b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6868,6 +6868,14 @@ dnl have_panel=[no, panelw, panel]
have_curses=no
have_panel=no
+case "$host_os" in
+ mingw*)
+ # On Mingw, include directory is different, so just assume
+ # it's there.
+ ac_cv_header_ncurses_h=yes
+ ;;
+esac
+
AH_TEMPLATE([HAVE_NCURSESW], [Define to 1 if you have the `ncursesw' library.])
AC_CHECK_HEADERS([curses.h ncurses.h])