diff -Naur ftp-tls-20020906/complete.c ftp-tls-mac/complete.c --- ftp-tls-20020906/complete.c Wed Jan 30 18:29:09 2002 +++ ftp-tls-mac/complete.c Sat Oct 5 15:18:55 2002 @@ -39,7 +39,7 @@ #ifdef HAVE_CONFIG_H #include #endif - +#include #ifndef SMALL #ifndef lint static char rcsid[] = "$OpenBSD: complete.c,v 1.12 2001/08/03 22:43:16 millert Exp $"; diff -Naur ftp-tls-20020906/configure ftp-tls-mac/configure --- ftp-tls-20020906/configure Fri Sep 6 11:44:48 2002 +++ ftp-tls-mac/configure Sat Oct 5 15:15:22 2002 @@ -5762,9 +5762,8 @@ _ACEOF else - LIBS="-ledit -L./libedit $LIBS" - CPPFLAGS="$CPPFLAGS -I./libedit" - LIBEDITTARGET=libedit-all + LIBS="-ledit $LIBS" + CPPFLAGS="$CPPFLAGS" MANEDITRC=editrc.5 fi diff -Naur ftp-tls-20020906/main.c ftp-tls-mac/main.c --- ftp-tls-20020906/main.c Thu Jul 25 16:49:16 2002 +++ ftp-tls-mac/main.c Sat Oct 5 15:17:59 2002 @@ -519,7 +519,7 @@ } else { const char *buf; cursor_pos = NULL; - + HistEvent hev; if ((buf = el_gets(el, &num)) == NULL || num == 0) quit(0, 0); if (buf[--num] == '\n') { @@ -532,7 +532,7 @@ } memcpy(line, buf, (size_t)num); line[num] = '\0'; - history(hist, H_ENTER, buf); + history(hist, &hev, H_ENTER, buf); } #endif /* !SMALL */ diff -Naur ftp-tls-20020906/util.c ftp-tls-mac/util.c --- ftp-tls-20020906/util.c Thu Jul 25 16:49:16 2002 +++ ftp-tls-mac/util.c Sat Oct 5 15:17:59 2002 @@ -94,7 +94,6 @@ #include "ftp_var.h" #include "pathnames.h" - #ifdef TLS # ifdef __STDC__ # include @@ -1013,9 +1012,10 @@ controlediting() { if (editing && el == NULL && hist == NULL) { - el = el_init(progname, stdin, ttyout); /* init editline */ + HistEvent hev; + el = el_init(progname, stdin, ttyout, stderr); /* init editline */ hist = history_init(); /* init the builtin history */ - history(hist, H_EVENT, 100); /* remember 100 events */ + history(hist, &hev, H_SETSIZE, 100); /* remember 100 events */ el_set(el, EL_HIST, history, hist); /* use history */ el_set(el, EL_EDITOR, "emacs"); /* default editor is emacs */