aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 */