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/ChangeLog | 5 +++++ src/lib/openpty.c | 12 +++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/ChangeLog b/src/ChangeLog index 79db4323..59a7ea4c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2009-02-09 Gabriel Dos Reis + + * lib/openpty.c: #include , , and + where available. + 2009-02-09 Gabriel Dos Reis * interp/i-spec2.boot (upDollar): Fix thinko. 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