From: Thomas Weißschuh Date: Wed, 29 Apr 2026 12:12:31 +0000 (+0200) Subject: meson: move sys/klog.h check into generic header checks X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=0de8fef6ce53198745270532d1624dbfe2c8eed5;p=thirdparty%2Futil-linux.git meson: move sys/klog.h check into generic header checks The check will be reused for different tools. Signed-off-by: Thomas Weißschuh --- diff --git a/meson.build b/meson.build index 48e959dfa..5cb29c7c3 100644 --- a/meson.build +++ b/meson.build @@ -146,6 +146,7 @@ headers = ''' sys/io.h sys/ioccom.h sys/ioctl.h + sys/klog.h sys/mkdev.h sys/mman.h sys/mount.h @@ -1661,7 +1662,9 @@ if opt and not is_disabler(exe) bashcompletions += ['fstrim'] endif -opt = get_option('build-dmesg').require(cc.has_header('sys/klog.h')).allowed() +opt = get_option('build-dmesg') \ + .require(conf.get('HAVE_SYS_KLOG_H').to_string() == '1') \ + .allowed() exe = executable( 'dmesg', dmesg_sources,