Source: sysvinit
Version: 2.95-3
Severity: important
Tags: ftbfs, patch
User: [email protected]
Usertags: kfreebsd

Hello,

Currently sysvinit FTBFS on GNU/kFreeBSD due to that c_line is not a
member of struct termios for that architecture. The attached patch
fixes that problem.

(Even though the built binary is not used, sulogin comes from util-
linux: dpkg -S /sbin/sulogin
util-linux: /sbin/sulogin)

Thanks!
--- a/src/sulogin.c	2019-06-15 19:02:34.000000000 +0200
+++ b/src/sulogin.c	2019-07-30 15:45:25.781248000 +0200
@@ -146,7 +146,7 @@
 		cfsetispeed(tio, ispeed);
 		cfsetospeed(tio, ospeed);
 
-#ifndef __GNU__
+#if !defined(__GNU__) && !defined(__FreeBSD_kernel__)
 		tio->c_line         = 0;
 #endif
 		tio->c_cc[VTIME]    = 0;

Reply via email to