diff options
author | kris <kris@FreeBSD.org> | 2007-10-28 19:45:13 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2007-10-28 19:45:13 +0800 |
commit | 78a2af1d5cbe144503a3ff111dd8f34f86cb8b34 (patch) | |
tree | 33e510f96b3196da2d6d19aac6328f55c6c1a0fe /games | |
parent | d5cc50f52aa5bebaa18c201bc637c802e077ff07 (diff) | |
download | freebsd-ports-gnome-78a2af1d5cbe144503a3ff111dd8f34f86cb8b34.tar.gz freebsd-ports-gnome-78a2af1d5cbe144503a3ff111dd8f34f86cb8b34.tar.zst freebsd-ports-gnome-78a2af1d5cbe144503a3ff111dd8f34f86cb8b34.zip |
Convert to use termios.h instead of sgtty.h
Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua>
PR: ports/110738
Diffstat (limited to 'games')
-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 |