diff options
author | Damien Miller <djm@mindrot.org> | 2024-09-25 03:13:05 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2024-09-25 03:13:05 +0200 |
commit | 76a618d2842c34c16cd21a4efc7230e2f459008d (patch) | |
tree | 06865a30a4185a1ed4be7ead7b535765991d893f | |
parent | Test the flags from OpenWRT's package. (diff) | |
download | openssh-76a618d2842c34c16cd21a4efc7230e2f459008d.tar.xz openssh-76a618d2842c34c16cd21a4efc7230e2f459008d.zip |
build construct_utmp() when USE_BTMP is set
Fixes compile error on Void Linux/Musl
-rw-r--r-- | loginrec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/loginrec.c b/loginrec.c index 45f13dee8..7b1818b86 100644 --- a/loginrec.c +++ b/loginrec.c @@ -614,7 +614,7 @@ line_abbrevname(char *dst, const char *src, int dstsize) ** into account. **/ -#if defined(USE_UTMP) || defined (USE_WTMP) || defined (USE_LOGIN) +#if defined(USE_BTMP) || defined(USE_UTMP) || defined (USE_WTMP) || defined (USE_LOGIN) /* build the utmp structure */ void @@ -698,7 +698,7 @@ construct_utmp(struct logininfo *li, } # endif } -#endif /* USE_UTMP || USE_WTMP || USE_LOGIN */ +#endif /* USE_BTMP || USE_UTMP || USE_WTMP || USE_LOGIN */ /** ** utmpx utility functions |