changeset 8690:83a8062ca215

(init_baud_rate) [USE_GETOBAUD]: Use getobaud.
author Richard M. Stallman <rms@gnu.org>
date Sat, 03 Sep 1994 04:34:17 +0000
parents 499bf32bfd9b
children 417a04871329
files src/sysdep.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/sysdep.c	Sat Sep 03 03:34:55 1994 +0000
+++ b/src/sysdep.c	Sat Sep 03 04:34:17 1994 +0000
@@ -279,6 +279,11 @@
       sg.c_cflag = B9600;
       tcgetattr (input_fd, &sg);
       ospeed = cfgetospeed (&sg);
+#ifdef USE_GETOBAUD
+      /* m88k-motorola-sysv3 needs this (ghazi@noc.rutgers.edu) 9/1/94. */
+      if (ospeed == 0)
+        ospeed = getobaud (sg.c_cflag);
+#endif
 #else /* neither VMS nor TERMIOS */
 #ifdef HAVE_TERMIO
       struct termio sg;