mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
Some versions of readline don't have rl_completion_func_t. )-:
Spotted by http://build.samba.org/ (This used to be commit da5a0f5c5b0917148fb6b668d4316aa4924708a1)
This commit is contained in:
parent
8e84cde71d
commit
3762d48404
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user