#ifdef __DGUX
#include <sys/ioctl.h>
#endif
+#ifndef NO_TERMIO
#include <termio.h>
+#endif /* not NO_TERMIO */
#include <fcntl.h>
#else
#ifdef HAVE_TERMIOS
+#if defined(_AIX) && defined(_I386)
+#include <termios.h> /* termios.h needs to be before termio.h */
+#include <termio.h>
+#else
#include <termio.h>
#include <termios.h>
+#endif /* _AIX && _I386 */
#include <fcntl.h>
#else /* neither HAVE_TERMIO nor HAVE_TERMIOS */
#ifndef VMS
#include <unistd.h>
#endif /* AIX */
+#ifdef IRIX4
+/* Get _getpty prototype */
+#include <unistd.h>
+#endif
+
#ifdef SYSV_PTYS
#include <sys/types.h>
#include <sys/tty.h>
#undef ASYNC
#endif
-/* Interupt input is not used if there is no FIONREAD. */
+/* Interrupt input is not used if there is no FIONREAD. */
#ifndef FIONREAD
#undef SIGIO
#endif
/* On TERMIOS systems, the tcmumbleattr calls take care of these
parameters, and it's a bad idea to use them (on AIX, it makes the
- tty hang for a long time).
+ tty hang for a long time). */
#if defined (TIOCGLTC) && !defined (HAVE_TERMIOS)
#define HAVE_LTCHARS
#endif
#define CDISABLE _POSIX_VDISABLE
#else /* not _POSIX_VDISABLE */
#ifdef CDEL
+#undef CDISABLE
#define CDISABLE CDEL
#else /* not CDEL */
#define CDISABLE 255