From: Thomas Weißschuh Date: Wed, 29 Apr 2026 12:28:38 +0000 (+0200) Subject: meson: gate write on _PATH_UTMP X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abb05cba5e02cb73272b096aca6c486f51727ffa;p=thirdparty%2Futil-linux.git meson: gate write 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 ce801102c..0b2cffa39 100644 --- a/meson.build +++ b/meson.build @@ -2834,7 +2834,9 @@ endif # chgrp tty $(DESTDIR)$(usrbin_execdir)/wall # chmod g+s $(DESTDIR)$(usrbin_execdir)/wall -opt = get_option('build-write').allowed() +opt = get_option('build-write') \ + .require(cc.has_header_symbol('paths.h', '_PATH_UTMP')) \ + .allowed() exe = executable( 'write', write_sources,