From: Thomas Weißschuh Date: Wed, 29 Apr 2026 12:12:51 +0000 (+0200) Subject: meson: gate setterm on sys/klog.h X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=7481b71261dcf52aa628d0b2c15f0d65bbc53de0;p=thirdparty%2Futil-linux.git meson: gate setterm on sys/klog.h The target needs this header, encode this in the build system. Signed-off-by: Thomas Weißschuh --- diff --git a/meson.build b/meson.build index 5cb29c7c3..99d713cf2 100644 --- a/meson.build +++ b/meson.build @@ -2746,7 +2746,9 @@ if opt and not is_disabler(exe) manadocs += agetty_manadocs endif -opt = get_option('build-setterm').allowed() +opt = get_option('build-setterm') \ + .require(conf.get('HAVE_SYS_KLOG_H').to_string() == '1') \ + .allowed() exe = executable( 'setterm', setterm_sources,