]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-152502: Detect optional curses functions with configure probes (GH-152504...
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 29 Jun 2026 18:04:03 +0000 (21:04 +0300)
committerGitHub <noreply@github.com>
Mon, 29 Jun 2026 18:04:03 +0000 (18:04 +0000)
commitd608eb950657fc59747a4f01ec4ead2425721656
treedb58d32e03b8e7587d1efbae13883451860a45eb
parentb066cd56c2575157bc76659b11b969553070eb1b
[3.13] gh-152502: Detect optional curses functions with configure probes (GH-152504) (GH-152589) (GH-152602)

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