From: Pádraig Brady Date: Thu, 16 Apr 2026 21:02:03 +0000 (+0100) Subject: build: fix build failure on AIX X-Git-Tag: v9.11~11 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=5597a275c2b60610090b40dd64ff5904dd393f41;p=thirdparty%2Fcoreutils.git build: fix build failure on AIX * m4/jm-macros.m4: AIX has a splice() function for TCP, so check for vmsplice() instead. * src/splice.h: Define HAVE_SPLICE if vmsplice available. Reported by Bruno Haible. --- diff --git a/m4/jm-macros.m4 b/m4/jm-macros.m4 index fbf0827039..fb00f9faf2 100644 --- a/m4/jm-macros.m4 +++ b/m4/jm-macros.m4 @@ -70,7 +70,7 @@ AC_DEFUN([coreutils_MACROS], setgroups sethostname siginterrupt - splice + vmsplice sync sysinfo tcgetpgrp diff --git a/src/splice.h b/src/splice.h index 1fb55054de..c146563f70 100644 --- a/src/splice.h +++ b/src/splice.h @@ -17,7 +17,12 @@ #ifndef SPLICE_H # define SPLICE_H 1 -# if HAVE_SPLICE +# if HAVE_VMSPLICE + +/* splice() and vmsplice() were introduced at the same time, + so assume splice() is available. Note AIX also has a different + splice() which is why we don't explicitly check for that function. */ +# define HAVE_SPLICE 1 /* Empirically determined pipe size for best throughput. Needs to be <= /proc/sys/fs/pipe-max-size */