]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: gate chmem on LINUX
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 22 Apr 2026 21:21:02 +0000 (23:21 +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 ceaef9f09f78c6b45b9355e5fbf7040045c072bf..59e1608c376ce9858f913907715886388feeff6f 100644 (file)
@@ -1473,7 +1473,9 @@ if opt and not is_disabler(exe)
   bashcompletions += ['lsmem']
 endif
 
-opt = get_option('build-chmem').allowed()
+opt = get_option('build-chmem') \
+      .require(LINUX) \
+      .allowed()
 exe = executable(
   'chmem',
   chmem_sources,