1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

* ttyio.h, ttyio.c (tty_enable_completion): Some ifdefs around

HAVE_LIBREADLINE to allow building when readline isn't available.
This commit is contained in:
David Shaw 2009-08-11 18:34:16 +00:00
parent 25659d66f1
commit ad2f896855
3 changed files with 19 additions and 4 deletions

View file

@ -1,6 +1,6 @@
/* ttyio.c - tty i/O functions
* Copyright (C) 1998,1999,2000,2001,2002,2003,
* 2004, 2006 Free Software Foundation, Inc.
* Copyright (C) 1998,1999,2000,2001,2002,2003,2004,2006,2007,
* 2009 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
@ -648,6 +648,7 @@ tty_private_set_rl_hooks (void (*init_stream) (FILE *),
}
#ifdef HAVE_LIBREADLINE
void
tty_enable_completion (rl_completion_func_t *completer)
{
@ -671,7 +672,7 @@ tty_disable_completion (void)
my_rl_inhibit_completion (1);
}
#endif
void
tty_cleanup_after_signal (void)