diff options
author | Daniel Jacobowitz <dan@debian.org> | 2007-02-27 17:23:34 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2007-02-27 17:23:34 +0000 |
commit | 7b6dacd42f8cdfb55cd6a872fb30e39d6ad1ac32 (patch) | |
tree | 8f7568cae7f84272a8de313ec78c0c440337c47b /gdb/gdbserver/terminal.h | |
parent | 9ba826a48e0e04f5680360d3dc3e73f9f70a9768 (diff) | |
download | gdb-7b6dacd42f8cdfb55cd6a872fb30e39d6ad1ac32.tar.gz |
* terminal.h: Check HAVE_SGTTY_H.
Diffstat (limited to 'gdb/gdbserver/terminal.h')
-rw-r--r-- | gdb/gdbserver/terminal.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/gdbserver/terminal.h b/gdb/gdbserver/terminal.h index e2ddef49212..bd0cbf6117f 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) */ |