diff options
author | Chet Ramey <chet.ramey@case.edu> | 2011-11-23 19:20:49 -0500 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2011-11-23 19:20:49 -0500 |
commit | 8e82c61d4caacfd43668bf1d2a7e23a0a21fa5bc (patch) | |
tree | d159ca5b29e675050fceebaea28437233f09396d /examples/rlfe/pty.c | |
parent | 518937ab89be812ccd45e9b8c1ce4ad721d35ef6 (diff) | |
download | readline-8e82c61d4caacfd43668bf1d2a7e23a0a21fa5bc.tar.gz |
Readline-6.0 import
Diffstat (limited to 'examples/rlfe/pty.c')
-rw-r--r-- | examples/rlfe/pty.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/rlfe/pty.c b/examples/rlfe/pty.c index f89d44c..5562720 100644 --- a/examples/rlfe/pty.c +++ b/examples/rlfe/pty.c @@ -20,13 +20,15 @@ * **************************************************************** */ +#include "config.h" #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <signal.h> -#include "config.h" +#include <unistd.h> + #include "screen.h" #ifndef sun @@ -34,7 +36,7 @@ #endif /* for solaris 2.1, Unixware (SVR4.2) and possibly others */ -#ifdef HAVE_SVR4_PTYS +#if defined (HAVE_SVR4_PTYS) && defined (HAVE_SYS_STROPTS_H) # include <sys/stropts.h> #endif @@ -384,4 +386,3 @@ char **ttyn; return -1; } #endif - |