]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-123925: Fix building curses on platforms without libncursesw (GH-128405...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 2 Jan 2025 12:01:40 +0000 (13:01 +0100)
committerGitHub <noreply@github.com>
Thu, 2 Jan 2025 12:01:40 +0000 (12:01 +0000)
(cherry picked from commit 8d16919a06a55a50756bf083221a6f6cab43de50)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Misc/NEWS.d/next/Build/2025-01-02-11-02-45.gh-issue-123925.TLlyUi.rst [new file with mode: 0644]
Modules/_cursesmodule.c

diff --git a/Misc/NEWS.d/next/Build/2025-01-02-11-02-45.gh-issue-123925.TLlyUi.rst b/Misc/NEWS.d/next/Build/2025-01-02-11-02-45.gh-issue-123925.TLlyUi.rst
new file mode 100644 (file)
index 0000000..a2a9c6f
--- /dev/null
@@ -0,0 +1,2 @@
+Fix building the :mod:`curses` module on platforms with libncurses but
+without libncursesw.
index 55038cf09c28760b21f50d741300ec4937067954..a7cbe81226eb19cea364b7920f9144e0508ab5a2 100644 (file)
@@ -137,7 +137,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