Do not attempt to replace rl_echo_signal_char if no readline is in use
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 18 Jan 2014 17:38:20 +0000 (18:38 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 18 Jan 2014 17:38:20 +0000 (18:38 +0100)
src/ui/terminal/terminal-reader.c

index c80a6131dea915afc84b2fc1b2943b55cef0440b..96a69d7bc452ab6e934270d850168b264924907f 100644 (file)
@@ -108,12 +108,15 @@ terminal_reader_cast (struct lex_reader *r)
   return UP_CAST (r, struct terminal_reader, reader);
 }
 
+
 /* Older libreadline versions do not provide rl_outstream.
    However, it is almost always going to be the same as stdout. */
 #if ! HAVE_RL_OUTSTREAM
 # define rl_outstream stdout
 #endif
 
+
+#if HAVE_READLINE
 /* Similarly, rl_echo_signal_char is fairly recent.
    We provide our own crude version if it is not present. */
 #if ! HAVE_RL_ECHO_SIGNAL_CHAR
@@ -138,6 +141,7 @@ rl_echo_signal_char (int sig)
   fflush (rl_outstream);
 }  
 #endif
+#endif
 
 
 static size_t