* ser-unix.c: Move #include of <sys/time.h> to HAVE_SGTTY section.
authorJim Kingdon <jkingdon@engr.sgi.com>
Sun, 27 Jun 1993 14:16:34 +0000 (14:16 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Sun, 27 Jun 1993 14:16:34 +0000 (14:16 +0000)
gdb/ChangeLog
gdb/ser-unix.c

index a0cdd89..6512046 100644 (file)
@@ -1,5 +1,7 @@
 Sun Jun 27 08:58:56 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
 
+       * ser-unix.c: Move #include of <sys/time.h> to HAVE_SGTTY section.
+
        * Makefile.in (ALLPARAM): Add config/mips/{x,n}-{news-mips,riscos}.h.
 
 Fri Jun 25 11:22:28 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
index 248496e..eb34da5 100644 (file)
@@ -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