]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: gate vipw on shadow.h
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 22 Apr 2026 21:12:53 +0000 (23:12 +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 2599db937c56bd6991beecb1157fbdcf002ed001..9929dec54856a2c02442f6096f95f5b3fbf0db9e 100644 (file)
@@ -1219,7 +1219,9 @@ if opt and not is_disabler(exe)
   bashcompletions += ['lslogins']
 endif
 
-opt = get_option('build-vipw').allowed()
+opt = get_option('build-vipw') \
+      .require(conf.get('HAVE_SHADOW_H').to_string() == '1') \
+      .allowed()
 exe = executable(
   'vipw',
   'login-utils/vipw.c',