]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: gate lsirq on cpu_set_t
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 29 Apr 2026 12:07:56 +0000 (14:07 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Thu, 14 May 2026 11:19:43 +0000 (13:19 +0200)
The target needs this type, encode this in the build system.

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

index 8abef86ef9103a3ff35d031e38c25274bfccc34e..f768252a5268247cbbfb60253ccd1b07c15d4d4c 100644 (file)
@@ -2259,7 +2259,9 @@ if opt and not is_disabler(exe)
   bashcompletions += ['flock']
 endif
 
-opt = get_option('build-lsirq').allowed()
+opt = get_option('build-lsirq') \
+      .require(conf.get('HAVE_CPU_SET_T').to_string() == '1') \
+      .allowed()
 exe = executable(
   'lsirq',
   lsirq_sources,