]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: gate more on sys/signalfd.h
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 22 Apr 2026 21:15:04 +0000 (23:15 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Sun, 3 May 2026 14:30:31 +0000 (16:30 +0200)
The target needs this header, encode this in the build system.

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

index 9929dec54856a2c02442f6096f95f5b3fbf0db9e..124202ef032cd4189d62bf0a319462039198243a 100644 (file)
@@ -1403,7 +1403,9 @@ if opt and not is_disabler(exe)
   bashcompletions += ['ul']
 endif
 
-opt = get_option('build-more').allowed()
+opt = get_option('build-more') \
+      .require(conf.get('HAVE_SYS_SIGNALFD_H').to_string() == '1') \
+      .allowed()
 exe = executable(
   'more',
   more_sources,