Only set the VSWTC field for termios in init if it is available, to get the source building on FreeBSD.

This commit is contained in:
Petter Reinholdtsen
2010-04-27 19:51:01 +00:00
parent 608673d2e3
commit cdb70c3a56
2 changed files with 4 additions and 0 deletions

View File

@ -770,7 +770,9 @@ void console_stty(void)
tty.c_cc[VEOF] = CEOF;
tty.c_cc[VTIME] = 0;
tty.c_cc[VMIN] = 1;
#ifdef VSWTC /* not defined on FreeBSD */
tty.c_cc[VSWTC] = _POSIX_VDISABLE;
#endif /* VSWTC */
tty.c_cc[VSTART] = CSTART;
tty.c_cc[VSTOP] = CSTOP;
tty.c_cc[VSUSP] = CSUSP;