]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: gate fincore on LINUX
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 29 Apr 2026 12:33:18 +0000 (14:33 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Tue, 12 May 2026 11:48:58 +0000 (13:48 +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 06061ddce508ba1e3356825a79a02ee6c84ab3a6..76d774f23e848e6b5d905ca750674cdb68265998 100644 (file)
@@ -3297,7 +3297,9 @@ if opt and not is_disabler(exe)
   bashcompletions += ['getopt']
 endif
 
-opt = get_option('build-fincore').allowed()
+opt = get_option('build-fincore') \
+      .require(LINUX) \
+      .allowed()
 exe = executable(
   'fincore',
   fincore_sources,