summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBo Anderson <mail@boanderson.me>2023-10-09 13:21:20 (GMT)
committerGitHub <noreply@github.com>2023-10-09 13:21:20 (GMT)
commitf4cb0d27cc08f490c42a22e646eb73cc7072d54a (patch)
tree0649c25cdf9621fcabe5740e85684a29e4ae85e5 /Modules
parent12cc6792d0ca1d0b72712d77c6efcb0aa0c7e7ba (diff)
downloadcpython-f4cb0d27cc08f490c42a22e646eb73cc7072d54a.zip
cpython-f4cb0d27cc08f490c42a22e646eb73cc7072d54a.tar.gz
cpython-f4cb0d27cc08f490c42a22e646eb73cc7072d54a.tar.bz2
gh-109191: Fix build with newer editline (gh-110239)
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 4b47302..fde552d 100644
--- a/Modules/readline.c
+++ b/Modules/readline.c
@@ -446,7 +446,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;