blob: 67a7062a462d01fe820820a92153c49320666ed9 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From 76a618d2842c34c16cd21a4efc7230e2f459008d Mon Sep 17 00:00:00 2001
2From: Damien Miller <djm@mindrot.org>
3Date: Wed, 25 Sep 2024 11:13:05 +1000
4Subject: [PATCH] build construct_utmp() when USE_BTMP is set
5
6Fixes compile error on Void Linux/Musl
7---
8 loginrec.c | 4 ++--
9 1 file changed, 2 insertions(+), 2 deletions(-)
10
11--- a/loginrec.c
12+++ b/loginrec.c
13@@ -614,7 +614,7 @@ line_abbrevname(char *dst, const char *s
14 ** into account.
15 **/
16
17-#if defined(USE_UTMP) || defined (USE_WTMP) || defined (USE_LOGIN)
18+#if defined(USE_BTMP) || defined(USE_UTMP) || defined (USE_WTMP) || defined (USE_LOGIN)
19
20 /* build the utmp structure */
21 void
22@@ -698,7 +698,7 @@ construct_utmp(struct logininfo *li,
23 }
24 # endif
25 }
26-#endif /* USE_UTMP || USE_WTMP || USE_LOGIN */
27+#endif /* USE_BTMP || USE_UTMP || USE_WTMP || USE_LOGIN */
28
29 /**
30 ** utmpx utility functions