[Pkg-sysvinit-devel] Bug#579293: sysvinit: FTBFS on kfreebsd-*: 'VSWTC' undeclared
Petr Salinger
Petr.Salinger at seznam.cz
Tue Apr 27 12:14:43 UTC 2010
> OK. Please test the patch and let us know if it compiles on freebsd.
It does not compile, better should be:
--- src/init.c
+++ src/init.c
@@ -770,7 +770,9 @@
tty.c_cc[VEOF] = CEOF;
tty.c_cc[VTIME] = 0;
tty.c_cc[VMIN] = 1;
+#ifdef VSWTC
tty.c_cc[VSWTC] = _POSIX_VDISABLE;
+#endif
tty.c_cc[VSTART] = CSTART;
tty.c_cc[VSTOP] = CSTOP;
tty.c_cc[VSUSP] = CSUSP;
Please also add missing ";" in 63_init_keep_utf8_ttyflag.patch
@@ -784,9 +786,11 @@
/*
* Set pre and post processing
*/
- tty.c_iflag = IGNPAR|ICRNL|IXON|IXANY;
+ tty.c_iflag = IGNPAR|ICRNL|IXON|IXANY
#ifdef IUTF8 /* Not defined on FreeBSD */
- tty.c_iflag |= IUTF8;
+ | (tty.c_iflag & IUTF8);
+#else
+ ;
#endif /* IUTF8 */
tty.c_oflag = OPOST|ONLCR;
tty.c_lflag = ISIG|ICANON|ECHO|ECHOCTL|ECHOPRT|ECHOKE;
More information about the Pkg-sysvinit-devel
mailing list