From 2e8481c03bceef8d009ea30b40c3e1674cfc9e93 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 10 Oct 2006 11:11:04 +0000 Subject: Various changes --- common/gpgrlhelp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'common/gpgrlhelp.c') diff --git a/common/gpgrlhelp.c b/common/gpgrlhelp.c index 56a9ce28c..ec72c98c8 100644 --- a/common/gpgrlhelp.c +++ b/common/gpgrlhelp.c @@ -40,6 +40,7 @@ #include "common-defs.h" +#ifdef HAVE_LIBREADLINE static void set_completer (rl_completion_func_t *completer) { @@ -68,12 +69,15 @@ init_stream (FILE *fp) rl_inhibit_completion = 1; } +#endif /*HAVE_LIBREADLINE*/ + /* Initialize our readline code. This should be called as early as possible as it is actually a constructur. */ void gnupg_rl_initialize (void) { +#ifdef HAVE_LIBREADLINE tty_private_set_rl_hooks (init_stream, set_completer, inhibit_completion, @@ -81,7 +85,7 @@ gnupg_rl_initialize (void) readline, add_history); rl_readline_name = "GnuPG"; - +#endif } -- cgit v1.2.3