Commit 0e76a4a6 authored by ram@mysql.r18.ru's avatar ram@mysql.r18.ru

fix for readline building

parent c1842a98
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
#endif #endif
extern char PC; extern char PC;
extern const char *UPc, *BCc; extern char *UP, *BC;
extern short ospeed; extern short ospeed;
......
...@@ -85,7 +85,7 @@ static int tcap_initialized; ...@@ -85,7 +85,7 @@ static int tcap_initialized;
extern extern
# endif /* __EMX__ || NEED_EXTERN_PC */ # endif /* __EMX__ || NEED_EXTERN_PC */
char PC; char PC;
const char *BCc, *UPc; char *BC, *UP;
#endif /* __linux__ */ #endif /* __linux__ */
/* Some strings to control terminal actions. These are output by tputs (). */ /* Some strings to control terminal actions. These are output by tputs (). */
...@@ -434,8 +434,8 @@ _rl_init_terminal_io (terminal_name) ...@@ -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 tgoto if _rl_term_IC or _rl_term_DC is defined, but just in case we
change that later... */ change that later... */
PC = '\0'; PC = '\0';
BCc = (char*)(_rl_term_backspace = "\b"); BC = (char*)(_rl_term_backspace = "\b");
UPc = (char*)_rl_term_up; UP = (char*)_rl_term_up;
return 0; return 0;
} }
...@@ -445,8 +445,8 @@ _rl_init_terminal_io (terminal_name) ...@@ -445,8 +445,8 @@ _rl_init_terminal_io (terminal_name)
/* Set up the variables that the termcap library expects the application /* Set up the variables that the termcap library expects the application
to provide. */ to provide. */
PC = _rl_term_pc ? *_rl_term_pc : 0; PC = _rl_term_pc ? *_rl_term_pc : 0;
BCc = (char*)_rl_term_backspace; BC = (char*)_rl_term_backspace;
UPc = (char*)_rl_term_up; UP = (char*)_rl_term_up;
if (!_rl_term_cr) if (!_rl_term_cr)
_rl_term_cr = "\r"; _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