summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-10-09 14:01:00 (GMT)
committerGitHub <noreply@github.com>2023-10-09 14:01:00 (GMT)
commit53122bcf825681487226c041d47763e82e081530 (patch)
tree6eb3b501e9af8c58c30a405daad8fb4a0583e472 /Modules
parent5afac0cf8d50db62aa1edefebde8a0af5fed0cd4 (diff)
downloadcpython-53122bcf825681487226c041d47763e82e081530.zip
cpython-53122bcf825681487226c041d47763e82e081530.tar.gz
cpython-53122bcf825681487226c041d47763e82e081530.tar.bz2
[3.12] gh-109191: Fix build with newer editline (gh-110239) (gh-110562)
gh-109191: Fix build with newer editline (gh-110239) (cherry picked from commit f4cb0d27cc08f490c42a22e646eb73cc7072d54a) Co-authored-by: Bo Anderson <mail@boanderson.me>
Diffstat (limited to 'Modules')
-rw-r--r--Modules/readline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/readline.c b/Modules/readline.c
index 2824105..9823ebe 100644
--- a/Modules/readline.c
+++ b/Modules/readline.c
@@ -442,7 +442,7 @@ readline_set_completion_display_matches_hook_impl(PyObject *module,
default completion display. */
rl_completion_display_matches_hook =
readlinestate_global->completion_display_matches_hook ?
-#if defined(_RL_FUNCTION_TYPEDEF)
+#if defined(HAVE_RL_COMPDISP_FUNC_T)
(rl_compdisp_func_t *)on_completion_display_matches_hook : 0;
#else
(VFunction *)on_completion_display_matches_hook : 0;