From 79f5a19fba15519dfa7fe82f4dd1f0e91652cded Mon Sep 17 00:00:00 2001 From: dos-reis Date: Wed, 11 Feb 2009 02:02:04 +0000 Subject: * lib/openpty.c: #include , , and where available. --- src/lib/openpty.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/openpty.c b/src/lib/openpty.c index eee46d04..5cf36c34 100644 --- a/src/lib/openpty.c +++ b/src/lib/openpty.c @@ -38,12 +38,22 @@ #include #include +#ifdef HAVE_SYS_IOCTL_H +# include +#endif #ifdef HAVE_PTY_H # include #endif #ifdef HAVE_UTIL_H # include #endif +#ifdef HAVE_TERMIOS_H +# include +#endif +#ifdef HAVE_LIBUTIL_H +# include +#endif + #include "openpty.H1" @@ -136,7 +146,7 @@ extern char* ptsname(int); return(fdm); #endif -# error "don't know open to open a pty" +# error "don't know how to open a pty" #endif } -- cgit v1.2.3