summaryrefslogtreecommitdiff
path: root/games/bsdgames/files/patch-hack_hack.ioctl.c
diff options
context:
space:
mode:
authorcvs2svn <cvs2svn@FreeBSD.org>2008-02-24 03:11:57 +0000
committercvs2svn <cvs2svn@FreeBSD.org>2008-02-24 03:11:57 +0000
commitfa4a943c17e47bf910596a414fd7287983350b9b (patch)
treedc76cec18a505befc330e612e0a56bf1caa5ca49 /games/bsdgames/files/patch-hack_hack.ioctl.c
parent- Fix manpage pointing to correct PREFIX for binary and conf (diff)
This commit was manufactured by cvs2svn to create tag 'RELEASE_7_0_0'.release/7.0.0
Diffstat (limited to 'games/bsdgames/files/patch-hack_hack.ioctl.c')
-rw-r--r--games/bsdgames/files/patch-hack_hack.ioctl.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/games/bsdgames/files/patch-hack_hack.ioctl.c b/games/bsdgames/files/patch-hack_hack.ioctl.c
deleted file mode 100644
index cd899364bed0..000000000000
--- a/games/bsdgames/files/patch-hack_hack.ioctl.c
+++ /dev/null
@@ -1,29 +0,0 @@
-Index: hack/hack.ioctl.c
-@@ -13,6 +13,9 @@
- #ifdef BSD
- #include <sgtty.h>
- struct ltchars ltchars, ltchars0;
-+#elif POSIX
-+#include <termios.h>
-+struct termios termio;
- #else
- #include <termio.h> /* also includes part of <sgtty.h> */
- struct termio termio;
-@@ -22,6 +25,8 @@
- #ifdef BSD
- (void) ioctl(fileno(stdin), (int) TIOCGLTC, (char *) &ltchars);
- (void) ioctl(fileno(stdin), (int) TIOCSLTC, (char *) &ltchars0);
-+#elif POSIX
-+ tcgetattr(fileno(stdin), &termio);
- #else
- (void) ioctl(fileno(stdin), (int) TCGETA, &termio);
- #endif /* BSD */
-@@ -30,6 +35,8 @@
- setioctls() {
- #ifdef BSD
- (void) ioctl(fileno(stdin), (int) TIOCSLTC, (char *) &ltchars);
-+#elif POSIX
-+ tcsetattr(fileno(stdin), TCSANOW, &termio);
- #else
- (void) ioctl(fileno(stdin), (int) TCSETA, &termio);
- #endif /* BSD */