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

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

index ef9398468eac47edca98078a656816dae5ff1521..19a8f1bbece70ca64ba0524ea497275305841ad6 100644 (file)
@@ -1916,7 +1916,9 @@ if opt and not is_disabler(exe)
   bashcompletions += ['zramctl']
 endif
 
-opt = get_option('build-prlimit').allowed()
+opt = get_option('build-prlimit') \
+      .require(conf.get('HAVE_PRLIMIT').to_string() == '1') \
+      .allowed()
 exe = executable(
   'prlimit',
   prlimit_sources,