]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: gate nsenter on sys/statfs.h
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 29 Apr 2026 12:00:49 +0000 (14:00 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Tue, 12 May 2026 11:54:09 +0000 (13:54 +0200)
The target needs this header, encode this in the build system.

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

index 44af3217e9b76b2e599c22a64586e19a5343ed59..d8d82183ad6a7bd44fadde27eee60be8f312cb1d 100644 (file)
@@ -2185,7 +2185,9 @@ if opt and not is_disabler(exe)
   exes += exe
 endif
 
-opt = get_option('build-nsenter').allowed()
+opt = get_option('build-nsenter') \
+      .require(conf.get('HAVE_SYS_STATFS_H').to_string() == '1') \
+      .allowed()
 exe = executable(
   'nsenter',
   nsenter_sources,