]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
build construct_utmp() when USE_BTMP is set
authorDamien Miller <djm@mindrot.org>
Wed, 25 Sep 2024 01:13:05 +0000 (11:13 +1000)
committerDamien Miller <djm@mindrot.org>
Wed, 25 Sep 2024 01:33:43 +0000 (11:33 +1000)
Fixes compile error on Void Linux/Musl

loginrec.c

index 45f13dee8b1fc2e3d9099d6ae50bd124662f9e90..7b1818b8675384f6e69e3116ca52816a24813674 100644 (file)
@@ -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