]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: gate losetup on LINUX
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 29 Apr 2026 12:34:57 +0000 (14:34 +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.
Also the parts of libcommon providing loopback handling are gated
behind LINUX.

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

index 59e1608c376ce9858f913907715886388feeff6f..4ee9cd6aa0e853f0eafbeaca1ee74cf31a5908de 100644 (file)
@@ -1864,7 +1864,9 @@ if opt and not is_disabler(exe)
   bashcompletions += ['eject']
 endif
 
-opt = get_option('build-losetup').allowed()
+opt = get_option('build-losetup') \
+      .require(LINUX) \
+      .allowed()
 exe = executable(
   'losetup',
   losetup_sources,