]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: gate hwclock on LINUX
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 29 Apr 2026 12:10:13 +0000 (14: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 28f2d99186ae838abb008477970eddf3e931fd08..5466a165a562ffb54b882b33cffc79ea55a59369 100644 (file)
@@ -975,7 +975,7 @@ bison = find_program('bison')
 flex = find_program('flex')
 sed = find_program('sed')
 
-build_hwclock = get_option('build-hwclock').allowed()
+build_hwclock = get_option('build-hwclock').require(LINUX).allowed()
 bison_gen = generator(
   bison,
   output : ['@BASENAME@.tab.c', '@BASENAME@.tab.h'],