Only set the VSWTC field for termios in init if it is available, to get the source...
authorPetter Reinholdtsen <pere@hungry.com>
Tue, 27 Apr 2010 19:51:01 +0000 (19:51 +0000)
committerPetter Reinholdtsen <pere@hungry.com>
Tue, 27 Apr 2010 19:51:01 +0000 (19:51 +0000)
git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@72 456724a4-4300-0410-8514-c89748c515a2

doc/Changelog
src/init.c

index 04b3bdbae216676a4e1952598c8194f5e9a15887..20cde15c65377c4a825081d7c565577747fe6bff 100644 (file)
@@ -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 <pere@hungry.com>  Sun Apr 11 11:28:55 CEST 2010
 
index d3b61bf67d86160605e0d0621ecb7dc78651d60f..3d7de768a7d4b7f96f76588d7e8185c46b9ac8d5 100644 (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;