Commit a2b66896 authored by unknown's avatar unknown

fix for readline building

parent 544fd657
......@@ -42,7 +42,7 @@
#endif
extern char PC;
extern const char *UPc, *BCc;
extern char *UP, *BC;
extern short ospeed;
......
......@@ -85,7 +85,7 @@ static int tcap_initialized;
extern
# endif /* __EMX__ || NEED_EXTERN_PC */
char PC;
const char *BCc, *UPc;
char *BC, *UP;
#endif /* __linux__ */
/* Some strings to control terminal actions. These are output by tputs (). */
......@@ -434,8 +434,8 @@ _rl_init_terminal_io (terminal_name)
tgoto if _rl_term_IC or _rl_term_DC is defined, but just in case we
change that later... */
PC = '\0';
BCc = (char*)(_rl_term_backspace = "\b");
UPc = (char*)_rl_term_up;
BC = (char*)(_rl_term_backspace = "\b");
UP = (char*)_rl_term_up;
return 0;
}
......@@ -445,8 +445,8 @@ _rl_init_terminal_io (terminal_name)
/* Set up the variables that the termcap library expects the application
to provide. */
PC = _rl_term_pc ? *_rl_term_pc : 0;
BCc = (char*)_rl_term_backspace;
UPc = (char*)_rl_term_up;
BC = (char*)_rl_term_backspace;
UP = (char*)_rl_term_up;
if (!_rl_term_cr)
_rl_term_cr = "\r";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment