mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-25 16:13:17 +00:00
NetBSD has changed the el_init() prototype
Submitted by: Kazuyoshi Kato <kazk@yyy.or.jp>
This commit is contained in:
parent
a77cab77c5
commit
e83358b444
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51448
@ -369,10 +369,11 @@ main(int argc, char **argv)
|
|||||||
size = 20;
|
size = 20;
|
||||||
#ifdef __NetBSD__
|
#ifdef __NetBSD__
|
||||||
history(hist, NULL, H_SETSIZE, size);
|
history(hist, NULL, H_SETSIZE, size);
|
||||||
|
edit = el_init("pppctl", stdin, stdout, stderr);
|
||||||
#else
|
#else
|
||||||
history(hist, H_EVENT, size);
|
history(hist, H_EVENT, size);
|
||||||
#endif
|
|
||||||
edit = el_init("pppctl", stdin, stdout);
|
edit = el_init("pppctl", stdin, stdout);
|
||||||
|
#endif
|
||||||
el_source(edit, NULL);
|
el_source(edit, NULL);
|
||||||
el_set(edit, EL_PROMPT, GetPrompt);
|
el_set(edit, EL_PROMPT, GetPrompt);
|
||||||
if ((env = getenv("EL_EDITOR"))) {
|
if ((env = getenv("EL_EDITOR"))) {
|
||||||
|
Loading…
Reference in New Issue
Block a user