Skip to content

Commit 261a604

Browse files
[3.13] gh-123925: Fix building curses on platforms without libncursesw (GH-128405) (GH-128407)
(cherry picked from commit 8d16919) Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent 48d50fd commit 261a604

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix building the :mod:`curses` module on platforms with libncurses but
2+
without libncursesw.

Modules/_cursesmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ typedef chtype attr_t; /* No attr_t type is available */
137137
#define STRICT_SYSV_CURSES
138138
#endif
139139

140-
#if NCURSES_EXT_FUNCS+0 >= 20170401 && NCURSES_EXT_COLORS+0 >= 20170401
140+
#if defined(HAVE_NCURSESW) && NCURSES_EXT_FUNCS+0 >= 20170401 && NCURSES_EXT_COLORS+0 >= 20170401
141141
#define _NCURSES_EXTENDED_COLOR_FUNCS 1
142142
#else
143143
#define _NCURSES_EXTENDED_COLOR_FUNCS 0

0 commit comments

Comments
 (0)