diff options
Diffstat (limited to 'games/tads/files')
-rw-r--r-- | games/tads/files/patch-tads2_osunixt.c | 19 | ||||
-rw-r--r-- | games/tads/files/patch-tads2_osunixt.h | 10 |
2 files changed, 29 insertions, 0 deletions
diff --git a/games/tads/files/patch-tads2_osunixt.c b/games/tads/files/patch-tads2_osunixt.c new file mode 100644 index 000000000000..6906c77668d9 --- /dev/null +++ b/games/tads/files/patch-tads2_osunixt.c @@ -0,0 +1,19 @@ +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; diff --git a/games/tads/files/patch-tads2_osunixt.h b/games/tads/files/patch-tads2_osunixt.h new file mode 100644 index 000000000000..49b3b1bb9118 --- /dev/null +++ b/games/tads/files/patch-tads2_osunixt.h @@ -0,0 +1,10 @@ +Index: osunixt.h +@@ -84,7 +84,7 @@ + * Define the following to use sgtty.h instead of termios or direct + * ioctl hacking. + */ +-#if defined(NEXT) || defined(IBM_RT) || defined(FREEBSD_386) || defined(IBM_AIX) || defined(NETBSD) || defined(OPENBSD) || defined(DARWIN) ++#if defined(NEXT) || defined(IBM_RT) || defined(IBM_AIX) || defined(NETBSD) || defined(OPENBSD) || defined(DARWIN) + #define USE_IOCTL_INSTEAD_OF_TERMIOS + #define USE_SGTTY + #endif |