]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: gate utmpdump on LINUX
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 22 Apr 2026 21:10:53 +0000 (23:10 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Mon, 4 May 2026 13:52:04 +0000 (15:52 +0200)
This tool uses Linux-specific API, encode this in the build system.

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

index 14d9e36d2a6e1005df8d87c89acdf97cb2770f11..c16310b5eb35888053fdfe0a91194ecd9ce06d2a 100644 (file)
@@ -1147,7 +1147,9 @@ if opt and not is_disabler(exe)
   manadocs += nologin_manadocs
 endif
 
-opt = get_option('build-utmpdump').allowed()
+opt = get_option('build-utmpdump') \
+      .require(LINUX) \
+      .allowed()
 exe = executable(
   'utmpdump',
   'login-utils/utmpdump.c',