summaryrefslogtreecommitdiff
path: root/games/bsdgames/files/patch-atc_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/bsdgames/files/patch-atc_main.c')
-rw-r--r--games/bsdgames/files/patch-atc_main.c47
1 files changed, 0 insertions, 47 deletions
diff --git a/games/bsdgames/files/patch-atc_main.c b/games/bsdgames/files/patch-atc_main.c
deleted file mode 100644
index 3592011afea8..000000000000
--- a/games/bsdgames/files/patch-atc_main.c
+++ /dev/null
@@ -1,47 +0,0 @@
-Index: atc/main.c
-@@ -173,6 +173,15 @@
- ioctl(fileno(stdin), TCSETAW, &tty_new);
- #endif
-
-+#ifdef POSIX
-+ tcgetattr(fileno(stdin), &tty_start);
-+ bcopy(&tty_start, &tty_new, sizeof(tty_new));
-+ tty_new.c_lflag &= ~ICANON;
-+ tty_new.c_lflag &= ~ECHO;
-+ tty_new.c_cc[VMIN] = 1;
-+ tty_new.c_cc[VTIME] = 0;
-+ tcsetattr(fileno(stdin), TCSANOW, &tty_new);
-+#endif
- signal(SIGALRM, update);
-
- #ifdef BSD
-@@ -185,6 +194,9 @@
- #ifdef SYSV
- alarm(sp->update_secs);
- #endif
-+#ifdef POSIX
-+ alarm(sp->update_secs);
-+#endif
-
- for (;;) {
- if (getcommand() != 1)
-@@ -198,6 +210,9 @@
- #ifdef SYSV
- alarm(0);
- #endif
-+#ifdef POSIX
-+ alarm(0);
-+#endif
-
- update();
-
-@@ -209,6 +224,9 @@
- setitimer(ITIMER_REAL, &itv, NULL);
- #endif
- #ifdef SYSV
-+ alarm(sp->update_secs);
-+#endif
-+#ifdef POSIX
- alarm(sp->update_secs);
- #endif
- }