aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/terminal.h
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-02-27 17:23:34 +0000
committerDaniel Jacobowitz <drow@false.org>2007-02-27 17:23:34 +0000
commit64a69107228184640d76cf2dace4ac17b78cc049 (patch)
tree20d278e827f774d493d6776e4ed734561d9bace5 /gdb/gdbserver/terminal.h
parent6f8486daac90adbf742dde9b81775651b5b6e624 (diff)
downloadgdb-64a69107228184640d76cf2dace4ac17b78cc049.zip
gdb-64a69107228184640d76cf2dace4ac17b78cc049.tar.gz
gdb-64a69107228184640d76cf2dace4ac17b78cc049.tar.bz2
* terminal.h: Check HAVE_SGTTY_H.
Diffstat (limited to 'gdb/gdbserver/terminal.h')
-rw-r--r--gdb/gdbserver/terminal.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/gdbserver/terminal.h b/gdb/gdbserver/terminal.h
index e2ddef4..bd0cbf6 100644
--- a/gdb/gdbserver/terminal.h
+++ b/gdb/gdbserver/terminal.h
@@ -39,7 +39,8 @@
#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>
@@ -47,5 +48,6 @@
#define TERMINAL struct sgttyb
#endif
#endif
+#endif
#endif /* !defined (TERMINAL_H) */