From 784e8e70985be6d8da3720bc3a23b24449af90d1 Mon Sep 17 00:00:00 2001 From: Ryan Schmidt Date: Fri, 18 Nov 2022 00:32:54 -0600 Subject: [PATCH] Fix compilation with current readline "Function *" was deprecated in readline 4.2 and removed in readline 6.3. And at some point it evidently also became required to include to use the history functions like "add_history". --- bin/debugger.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/debugger.cpp b/bin/debugger.cpp index 26e9eee..827cb56 100644 --- a/bin/debugger.cpp +++ b/bin/debugger.cpp @@ -43,6 +43,7 @@ #include #include +#include #include "loader.h" @@ -1225,7 +1226,7 @@ namespace { { rl_readline_name = (char *)"mpw"; rl_attempted_completion_function = mpw_attempted_completion_function; - rl_completion_entry_function = (Function *)mpw_completion_entry_function; + rl_completion_entry_function = (rl_compentry_func_t *)mpw_completion_entry_function; } }