summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2025-01-02 11:38:21 (GMT)
committerGitHub <noreply@github.com>2025-01-02 11:38:21 (GMT)
commit8d16919a06a55a50756bf083221a6f6cab43de50 (patch)
tree130ba36b6499365e3a1e49c91e6f8ae55d6910e9 /Modules
parente1baa778f602ede66831eb34b9ef17f21e4d4347 (diff)
downloadcpython-8d16919a06a55a50756bf083221a6f6cab43de50.zip
cpython-8d16919a06a55a50756bf083221a6f6cab43de50.tar.gz
cpython-8d16919a06a55a50756bf083221a6f6cab43de50.tar.bz2
gh-123925: Fix building curses on platforms without libncursesw (GH-128405)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_cursesmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index 040ffa8..92961af 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -138,7 +138,7 @@ typedef chtype attr_t; /* No attr_t type is available */
#define STRICT_SYSV_CURSES
#endif
-#if NCURSES_EXT_FUNCS+0 >= 20170401 && NCURSES_EXT_COLORS+0 >= 20170401
+#if defined(HAVE_NCURSESW) && NCURSES_EXT_FUNCS+0 >= 20170401 && NCURSES_EXT_COLORS+0 >= 20170401
#define _NCURSES_EXTENDED_COLOR_FUNCS 1
#else
#define _NCURSES_EXTENDED_COLOR_FUNCS 0