mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Readline fix to be robust against platforms where readline has its own
dependencies. We play guess-the-depedency for a while, and try termcap, curses, and ncurses.
This commit is contained in:
parent
39b0f6e4ea
commit
005b1d7960
9 changed files with 87 additions and 10 deletions
|
@ -27,7 +27,7 @@
|
|||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <assert.h>
|
||||
#ifdef HAVE_READLINE_READLINE_H
|
||||
#ifdef HAVE_LIBREADLINE
|
||||
#include <readline/readline.h>
|
||||
#include <readline/history.h>
|
||||
#endif
|
||||
|
@ -83,7 +83,7 @@ got_fatal_signal( int sig )
|
|||
|
||||
secmem_term();
|
||||
|
||||
#if defined(HAVE_READLINE_READLINE_H) && defined(HAVE_LIBREADLINE)
|
||||
#ifdef HAVE_LIBREADLINE
|
||||
rl_free_line_state ();
|
||||
rl_cleanup_after_signal ();
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue