From: Thomas Weißschuh Date: Wed, 29 Apr 2026 12:28:20 +0000 (+0200) Subject: meson: gate agetty on _PATH_UTMP X-Git-Url: http://git.ipfire.org/index.cgi?a=commitdiff_plain;h=b5cd81a1011c9dc234b107aef64fa2c7861b68a0;p=thirdparty%2Futil-linux.git meson: gate agetty on _PATH_UTMP The target needs this symbol, encode this in the build system. Signed-off-by: Thomas Weißschuh --- diff --git a/meson.build b/meson.build index 67a4c9302..ce801102c 100644 --- a/meson.build +++ b/meson.build @@ -2757,7 +2757,9 @@ if opt and not is_disabler(exe) bashcompletions += ['scriptreplay'] endif -opt = get_option('build-agetty').allowed() +opt = get_option('build-agetty') \ + .require(cc.has_header_symbol('paths.h', '_PATH_UTMP')) \ + .allowed() exe = executable( 'agetty', agetty_sources,