]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-152502: Detect optional curses functions with configure probes (GH-152504...
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 29 Jun 2026 15:25:30 +0000 (18:25 +0300)
committerGitHub <noreply@github.com>
Mon, 29 Jun 2026 15:25:30 +0000 (15:25 +0000)
commit7ad8bc2084af81d5db07fa6db61003e3d6fbdb18
tree7aa234c1972cd4854a6579bb9a38e754e313003f
parent6f6256f57405ed3a7a01c0867b9855e6e881e83e
[3.14] gh-152502: Detect optional curses functions with configure probes (GH-152504) (GH-152589) (GH-152603)

set_escdelay(), set_tabsize() and the ESCDELAY and TABSIZE variables were
gated only by the ncurses-specific NCURSES_EXT_FUNCS macro, which excluded
them when building against other curses implementations such as NetBSD curses
even when they provided them.  Detect each with a configure capability probe
and gate on HAVE_CURSES_*.
(cherry picked from commit 0635e55b47e306aa6cc0610105775849b0699e2c)
(cherry picked from commit 2a4ffa6f2128308ba5ba81a7c8912fb781a271e0)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Misc/NEWS.d/next/Build/2026-06-28-16-17-55.gh-issue-152502.6SNqMg.rst [new file with mode: 0644]
Modules/_cursesmodule.c
Modules/clinic/_cursesmodule.c.h
configure
configure.ac
pyconfig.h.in