freebsd-ports/games/bsdgames/files/patch-atc_input.c
Juergen Lock 805f53212b Convert freebsd-games to use termios.h instead of sgtty.h
PR:		ports/110731
Submitted by:	Alex Kozlov <spam@rm-rf.kiev.ua>
Approved by:	miwi (mentor)
2007-03-23 23:02:33 +00:00

23 lines
409 B
C

Index: atc/input.c
@@ -323,6 +323,10 @@
int aval;
aval = alarm(0);
#endif
+#ifdef POSIX
+ int aval;
+ aval = alarm(0);
+#endif
if (fork() == 0) /* child */
{
char *shell, *base;
@@ -358,6 +362,10 @@
#endif
#ifdef SYSV
ioctl(fileno(stdin), TCSETAW, &tty_new);
+ alarm(aval);
+#endif
+#ifdef POSIX
+ tcsetattr(fileno(stdin), TCSANOW, &tty_new);
alarm(aval);
#endif
}