diff options
-rw-r--r-- | gdb/gdbserver/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/gdbserver/terminal.h | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 1900371..4d60b87 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,4 +1,8 @@ -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. 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) */ |