aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2009-02-11 02:02:04 +0000
committerdos-reis <gdr@axiomatics.org>2009-02-11 02:02:04 +0000
commit79f5a19fba15519dfa7fe82f4dd1f0e91652cded (patch)
tree6e5aae96d498df4ea1c90c036bae75e96f5b6c98 /src/lib
parent16ccc3d066711098e15ee8e678b249e0b9379990 (diff)
downloadopen-axiom-79f5a19fba15519dfa7fe82f4dd1f0e91652cded.tar.gz
* lib/openpty.c: #include <sys/ioctl.h>, <termios.h>, and
<libutil.h> where available.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/openpty.c12
1 files changed, 11 insertions, 1 deletions
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 <fcntl.h>
#include <string.h>
+#ifdef HAVE_SYS_IOCTL_H
+# include <sys/ioctl.h>
+#endif
#ifdef HAVE_PTY_H
# include <pty.h>
#endif
#ifdef HAVE_UTIL_H
# include <util.h>
#endif
+#ifdef HAVE_TERMIOS_H
+# include <termios.h>
+#endif
+#ifdef HAVE_LIBUTIL_H
+# include <libutil.h>
+#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
}