]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: gate write on _PATH_UTMP
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 29 Apr 2026 12:28:38 +0000 (14:28 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Tue, 12 May 2026 11:56:27 +0000 (13:56 +0200)
The target needs this symbol, encode this in the build system.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
meson.build

index ce801102cfde01df4d93ef67e173a5d1caa7fe67..0b2cffa397094a100d930d7203717e6ffb692644 100644 (file)
@@ -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,