-2007-02-26 Mat Hostetter <mat@lcs.mit.edu>
+2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * terminal.h: Check HAVE_SGTTY_H.
+
+2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
* remote-utils.c (remote_open): Print out the assigned port number.
#undef TIOCSETP
#define TIOCSETP TCSETAF
#define TERMINAL struct termio
-#else /* ! HAVE_TERMIO_H; default to SGTTY. */
+#else /* ! HAVE_TERMIO_H */
+#ifdef HAVE_SGTTY_H
#define HAVE_SGTTY
#include <fcntl.h>
#include <sgtty.h>
#define TERMINAL struct sgttyb
#endif
#endif
+#endif
#endif /* !defined (TERMINAL_H) */