]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: gate uuidd on sys/signalfd.h
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 29 Apr 2026 12:14:36 +0000 (14:14 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Tue, 12 May 2026 11:49:27 +0000 (13:49 +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 76d774f23e848e6b5d905ca750674cdb68265998..44af3217e9b76b2e599c22a64586e19a5343ed59 100644 (file)
@@ -253,7 +253,9 @@ summary('libsmartcols', build_libsmartcols ? 'enabled' : 'disabled', section : '
 build_libfdisk = get_option('build-libfdisk').require(get_option('build-libblkid').allowed()).allowed()
 summary('libfdisk', build_libfdisk ? 'enabled' : 'disabled', section : 'components')
 
-build_uuidd = get_option('build-uuidd').allowed()
+build_uuidd = get_option('build-uuidd') \
+              .require(conf.get('HAVE_SYS_SIGNALFD_H').to_string() == '1') \
+              .allowed()
 conf.set('HAVE_UUIDD', build_uuidd ? 1 : false)
 summary('uuidd', build_uuidd ? 'enabled' : 'disabled', section : 'components')