aboutsummaryrefslogtreecommitdiffstats
path: root/src/sysdep.c
diff options
context:
space:
mode:
authorJim Blandy1992-11-07 07:36:36 +0000
committerJim Blandy1992-11-07 07:36:36 +0000
commit2507ce20cd25ebddc13b5fc4897d4f0ec445bbb1 (patch)
treeb468592bd2d8cdc07f727409b22f280e61ab8475 /src/sysdep.c
parent7d79e3b431c09e2977881c1fbae6944c41e6d95d (diff)
downloademacs-2507ce20cd25ebddc13b5fc4897d4f0ec445bbb1.tar.gz
emacs-2507ce20cd25ebddc13b5fc4897d4f0ec445bbb1.zip
* sysdep.c (init_baud_rate) [HAVE_TERMIO, not HAVE_TCATTR]: Use
TCGETA, not TIOCGETP.
Diffstat (limited to 'src/sysdep.c')
-rw-r--r--src/sysdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index ecacfa8b3d3..7521515e93c 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -278,7 +278,7 @@ init_baud_rate ()
278#ifdef HAVE_TCATTR 278#ifdef HAVE_TCATTR
279 tcgetattr (0, &sg); 279 tcgetattr (0, &sg);
280#else 280#else
281 ioctl (fd, TIOCGETP, &sg); 281 ioctl (fd, TCGETA, &sg);
282#endif 282#endif
283 ospeed = sg.c_cflag & CBAUD; 283 ospeed = sg.c_cflag & CBAUD;
284#else /* neither VMS nor TERMIOS nor TERMIO */ 284#else /* neither VMS nor TERMIOS nor TERMIO */