https://sourceforge.net/tracker/?func=detail&aid=3071706&group_id=13179&atid=113179 --- a/exp_clib.c +++ b/exp_clib.c @@ -15,6 +15,12 @@ #endif #include #include +#ifdef HAVE_UNISTD_H +# include +#endif +#ifdef HAVE_SYS_WAIT_H +#include +#endif #ifdef TIME_WITH_SYS_TIME # include --- a/exp_trap.c +++ b/exp_trap.c @@ -13,6 +13,7 @@ #include #include #include +#include #ifdef HAVE_SYS_WAIT_H #include --- a/pty_termios.c +++ b/pty_termios.c @@ -9,6 +9,8 @@ #include #include +#include +#include #if defined(SIGCLD) && !defined(SIGCHLD) #define SIGCHLD SIGCLD @@ -100,6 +100,7 @@ #include "exp_tty_in.h" #include "exp_rename.h" +#include "exp_int.h" #include "exp_pty.h" void expDiagLog(); --- a/exp_chan.c +++ b/exp_chan.c @@ -34,6 +34,7 @@ #include "exp_rename.h" #include "exp_prog.h" #include "exp_command.h" +#include "exp_event.h" #include "exp_log.h" #include "tcldbg.h" /* Dbg_StdinMode */ --- a/exp_clib.c +++ b/exp_clib.c @@ -1955,6 +1955,7 @@ #include "expect.h" #include "exp_int.h" +EXTERN void exp_init_tty _ANSI_ARGS_((void)); /* exp_glob.c - expect functions for doing glob * --- a/exp_tty.h +++ b/exp_tty.h @@ -17,6 +17,7 @@ void exp_tty_raw(int set); void exp_tty_echo(int set); +int exp_tty_cooked_echo(Tcl_Interp *interp, exp_tty *tty_old, int *was_raw, int *was_echo); void exp_tty_break(Tcl_Interp *interp, int fd); int exp_tty_raw_noecho(Tcl_Interp *interp, exp_tty *tty_old, int *was_raw, int *was_echo); int exp_israw(void); --- a/exp_main_tk.c +++ b/exp_main_tk.c @@ -32,6 +32,7 @@ static char sccsid[] = "@(#) tkAppInit.c 1.19 95/12/23 17:09:24"; #endif /* not lint */ +#include #include #include "tk.h"