diff options
author | Karl Berry <karl@freefriends.org> | 2020-03-04 23:30:22 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-03-04 23:30:22 +0000 |
commit | a85d452972af29ed4f50b866a1c6d62d9358d275 (patch) | |
tree | 3f44270eb88e71bb3447edbee4f3e2a0243e0271 /Build/source/utils/asymptote/interact.cc | |
parent | 0dbef2f64b95a09cb52620dab9f384b691c6e225 (diff) |
asy 2.64 sources
git-svn-id: svn://tug.org/texlive/trunk@54083 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/interact.cc')
-rw-r--r-- | Build/source/utils/asymptote/interact.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Build/source/utils/asymptote/interact.cc b/Build/source/utils/asymptote/interact.cc index 84d6b00ce76..e7551fd72f6 100644 --- a/Build/source/utils/asymptote/interact.cc +++ b/Build/source/utils/asymptote/interact.cc @@ -24,11 +24,15 @@ #include <readline/history.h> #else #ifdef HAVE_LIBEDIT +// Work around incorrect declaration in NetBSD readline.h v1.33 +#define rl_completion_entry_function rl_completion_entry_function_declaration #ifdef HAVE_EDITLINE_READLINE_H #include <editline/readline.h> #else #include <readline/readline.h> #endif +#undef rl_completion_entry_function +extern "C" rl_compentry_func_t *rl_completion_entry_function; #endif #endif #endif @@ -187,7 +191,7 @@ void addToHistory(string line) { } string getLastHistoryLine() { -#if defined(HAVE_READLINE) && defined(HAVE_LIBCURSES) +#if defined(HAVE_LIBREADLINE) && defined(HAVE_LIBCURSES) if(tty && history_length > 0) { HIST_ENTRY *entry=history_list()[history_length-1]; if(!entry) { |