File: 0002-Fix-FTBFS-on-kfreebsd-any.patch

package info (click to toggle)
sysvinit 3.14-4
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 2,892 kB
  • sloc: ansic: 8,529; sh: 3,853; makefile: 351
file content (21 lines) | stat: -rw-r--r-- 511 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Dmitry Bogatov <KAction@debian.org>
Date: Fri, 2 Aug 2019 09:51:17 +0000
Subject: Fix FTBFS on kfreebsd-any

Closes: #933638
Thanks: Svante Signell <svante.signell@gmail.com>
---
 src/sulogin.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/src/sulogin.c
+++ b/src/sulogin.c
@@ -145,7 +145,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;