--- readline-5.1/examples/rlfe/Makefile.in +++ readline-5.1/examples/rlfe/Makefile.in @@ -25,7 +25,7 @@ CFLAGS = @CFLAGS@ CPPFLAGS = @CPPFLAGS@ #LDFLAGS = -L$(READLINE_DIR) LDFLAGS = @LDFLAGS@ -LIBS = -lreadline -lhistory -lncurses +LIBS = -lreadline -lhistory @LIBS@ CPP=@CPP@ CPP_DEPEND=$(CC) -MM --- readline-5.1/examples/rlfe/configure.in +++ readline-5.1/examples/rlfe/configure.in @@ -435,4 +435,6 @@ fi +AC_CHECK_HEADERS(sys/stropts.h sys/wait.h) + AC_OUTPUT(Makefile) --- readline-5.1/examples/rlfe/pty.c +++ readline-5.1/examples/rlfe/pty.c @@ -23,6 +23,7 @@ #include #include +#include #include #include @@ -34,7 +35,7 @@ #endif /* for solaris 2.1, Unixware (SVR4.2) and possibly others */ -#ifdef HAVE_SVR4_PTYS +#if defined(HAVE_SYS_STROPTS_H) # include #endif --- readline-5.1/examples/rlfe/rlfe.c +++ readline-5.1/examples/rlfe/rlfe.c @@ -73,6 +73,11 @@ #include #include "config.h" +#include "extern.h" + +#ifdef HAVE_SYS_WAIT_H +# include +#endif #ifdef READLINE_LIBRARY # include "readline.h"