diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-06-27 14:16:34 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-06-27 14:16:34 +0000 |
commit | 68d2db622d49c606fcd61e7e1253aaf05c089e41 (patch) | |
tree | 84a31e3e35001d5664757fd9599d17544af3bb98 /gdb/ser-unix.c | |
parent | ee0d1b6565902a0e1d1e5c9b45b684fba293f433 (diff) | |
download | gdb-68d2db622d49c606fcd61e7e1253aaf05c089e41.zip gdb-68d2db622d49c606fcd61e7e1253aaf05c089e41.tar.gz gdb-68d2db622d49c606fcd61e7e1253aaf05c089e41.tar.bz2 |
* ser-unix.c: Move #include of <sys/time.h> to HAVE_SGTTY section.
Diffstat (limited to 'gdb/ser-unix.c')
-rw-r--r-- | gdb/ser-unix.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/ser-unix.c b/gdb/ser-unix.c index 248496e..eb34da5 100644 --- a/gdb/ser-unix.c +++ b/gdb/ser-unix.c @@ -21,7 +21,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "serial.h" #include <fcntl.h> #include <sys/types.h> -#include <sys/time.h> #if !defined (HAVE_TERMIOS) && !defined (HAVE_TERMIO) && !defined (HAVE_SGTTY) #define HAVE_SGTTY @@ -47,6 +46,10 @@ struct hardwire_ttystate #endif #ifdef HAVE_SGTTY +/* Needed for the code which uses select(). We would include <sys/select.h> + too if it existed on all systems. */ +#include <sys/time.h> + #include <sgtty.h> struct hardwire_ttystate |