From: Daniel Jacobowitz Date: Tue, 27 Feb 2007 17:23:34 +0000 (+0000) Subject: * terminal.h: Check HAVE_SGTTY_H. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=64a69107228184640d76cf2dace4ac17b78cc049;p=binutils-gdb.git * terminal.h: Check HAVE_SGTTY_H. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 19003715e25..4d60b8760f4 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,4 +1,8 @@ -2007-02-26 Mat Hostetter +2007-02-27 Daniel Jacobowitz + + * terminal.h: Check HAVE_SGTTY_H. + +2007-02-27 Mat Hostetter * remote-utils.c (remote_open): Print out the assigned port number. 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 #include @@ -47,5 +48,6 @@ #define TERMINAL struct sgttyb #endif #endif +#endif #endif /* !defined (TERMINAL_H) */