[HAVE_TERMIOS_H]: Declare ospeed as speed_t.
[bpt/emacs.git] / src / sysdep.c
index 5baf95c..cf6850c 100644 (file)
@@ -220,7 +220,12 @@ static int baud_convert[] =
   };
 #endif
 
-extern short ospeed;
+#ifdef HAVE_TERMIOS_H
+# include <termios.h>
+  extern speed_t ospeed;
+#else
+  extern short ospeed;
+#endif
 
 /* The file descriptor for Emacs's input terminal.
    Under Unix, this is normally zero except when using X;