freebsd-ports/games/tads/files/patch-tads2_osunixt.c
Kris Kennaway c2a0b48496 Convert to use termios.h instead of sgtty.h
Submitted by:  Alex Kozlov <spam@rm-rf.kiev.ua>
PR:	       ports/110738
2007-10-28 11:45:13 +00:00

19 lines
416 B
C

Index: osunixt.c
@@ -960,7 +960,7 @@
t.c_cc[VMIN] = 1;
t.c_cc[VTIME] = 0;
#if !defined(SGI_IRIX)
- t.c_oflag &= (~XTABS);
+ t.c_oflag &= (~OXTABS);
#else
t.c_oflag &= (~TAB3);
#endif
@@ -984,7 +984,7 @@
#ifdef USE_SGTTY
ospeed = t.sg_ospeed;
#else
- ospeed = t.c_cflag & CBAUD;
+ ospeed = cfgetospeed(&t);
#endif
if (ospeed == 0)
ospeed = 11;