Make sure IOV_MAX is defined. We stopped defining IOV_MAX on non-Windows systems in 75357ab94, on the assumption that every non-Windows system defines it in <limits.h> as required by X/Open. GNU Hurd, however, doesn't follow that standard either. Put back the old logic to assume 16 if it's not defined.
Author: Michael Banck <mba...@gmx.net> Co-authored-by: Christoph Berg <m...@debian.org> Reviewed-by: Tom Lane <t...@sss.pgh.pa.us> Discussion: https://postgr.es/m/6862e8d1.050a0220.194b8d.7...@mx.google.com Discussion: https://postgr.es/m/6846e0c3.df0a0220.39ef9b.c...@mx.google.com Backpatch-through: 16 Branch ------ REL_16_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/d25d392e89440f97bfafc0e80dc7737872659d76 Modified Files -------------- src/include/port/pg_iovec.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)