]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: gate pipesz on F_GETPIPE_SZ
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 29 Apr 2026 12:26:45 +0000 (14:26 +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 bc0a7397f5209dd18ce759b38b13b167d13d5605..67a4c93027b9bba3bd2d33586cfd4fe1793f1b3c 100644 (file)
@@ -3336,7 +3336,9 @@ if opt and not is_disabler(exe)
   bashcompletions += ['hardlink']
 endif
 
-opt = get_option('build-pipesz').allowed()
+opt = get_option('build-pipesz') \
+      .require(cc.has_header_symbol('fcntl.h', 'F_GETPIPE_SZ')) \
+      .allowed()
 exe = executable(
   'pipesz',
   pipesz_sources,