From: Thomas Weißschuh Date: Wed, 29 Apr 2026 11:53:59 +0000 (+0200) Subject: meson: gate wdctl on linux/watchdog.h X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=2e032baddb5d455951eff0daa5c5c9515e1d79e4;p=thirdparty%2Futil-linux.git meson: gate wdctl on linux/watchdog.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 1bf26d997..d518a4aa9 100644 --- a/meson.build +++ b/meson.build @@ -2069,7 +2069,9 @@ if opt and not is_disabler(exe) bashcompletions += ['chcpu'] endif -opt = get_option('build-wdctl').allowed() +opt = get_option('build-wdctl') \ + .require(conf.get('HAVE_LINUX_WATCHDOG_H').to_string() == '1') \ + .allowed() exe = executable( 'wdctl', wdctl_sources,