mirror of
https://github.com/samba-team/samba.git
synced 2025-08-29 13:49:30 +03:00
Some versions of readline don't have rl_completion_func_t. )-:
Spotted by http://build.samba.org/
(This used to be commit da5a0f5c5b
)
This commit is contained in:
@ -49,8 +49,7 @@ char *smb_readline(char *prompt, void (*callback)(void),
|
||||
char *ret;
|
||||
#if HAVE_LIBREADLINE
|
||||
if (completion_fn) {
|
||||
rl_attempted_completion_function =
|
||||
(rl_completion_func_t *)completion_fn;
|
||||
rl_attempted_completion_function = completion_fn;
|
||||
}
|
||||
|
||||
if (callback) rl_event_hook = (Function *)callback;
|
||||
|
Reference in New Issue
Block a user