]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: gate lslogins on shadow.h
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 22 Apr 2026 21:10:58 +0000 (23:10 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Sun, 3 May 2026 14:30:31 +0000 (16:30 +0200)
The target needs this header, encode this in the build system.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
meson.build

index 52ebded3dd6eaf7a4a9fc5d1b644381d01456f8d..2599db937c56bd6991beecb1157fbdcf002ed001 100644 (file)
@@ -1197,7 +1197,9 @@ if opt and not is_disabler(exe)
   bashcompletions += ['newgrp']
 endif
 
-opt = get_option('build-lslogins').allowed()
+opt = get_option('build-lslogins') \
+      .require(conf.get('HAVE_SHADOW_H').to_string() == '1') \
+      .allowed()
 exe = executable(
   'lslogins',
   'login-utils/lslogins.c',