diff --git a/doc/Changelog b/doc/Changelog index 04b3bdb..20cde15 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -9,6 +9,8 @@ sysvinit (2.89dsf) UNRELEASED; urgency=low * Next release will be 2.89dsf. * Add #ifdef in bootlogd.c to avoid gcc warnings about unused variable on non-linux platforms. + * Only set the VSWTC field for termios in init if it is available, + to get the source building on FreeBSD. -- Petter Reinholdtsen Sun Apr 11 11:28:55 CEST 2010 diff --git a/src/init.c b/src/init.c index d3b61bf..3d7de76 100644 --- a/src/init.c +++ b/src/init.c @@ -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;