diff options
author | Werner Koch <[email protected]> | 2006-10-10 11:11:04 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2006-10-10 11:11:04 +0000 |
commit | 2e8481c03bceef8d009ea30b40c3e1674cfc9e93 (patch) | |
tree | 03469588ff8e79f7c2cc28300cc133c9e89c69d1 /common/gpgrlhelp.c | |
parent | Make it also work for the card. (diff) | |
download | gnupg-2e8481c03bceef8d009ea30b40c3e1674cfc9e93.tar.gz gnupg-2e8481c03bceef8d009ea30b40c3e1674cfc9e93.zip |
Various changes
Diffstat (limited to 'common/gpgrlhelp.c')
-rw-r--r-- | common/gpgrlhelp.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 } |