From 611e643d14659be8a63e9ca51d5d05659c4b8b6c Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 2 Aug 2020 18:06:08 +0000 Subject: [PATCH] ldap_server: fix hurd build MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit There is no hardcoded IOV_MAX iov limitation on GNU/Hurd. We however do not want unbound allocation, so define it to a reasonable amount. Signed-off-by: Samuel Thibault Reviewed-by: Ralph Boehme Reviewed-by: Andrew Bartlett Autobuild-User(master): Ralph Böhme Autobuild-Date(master): Mon Aug 3 09:39:02 UTC 2020 on sn-devel-184 --- lib/replace/system/network.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/replace/system/network.h b/lib/replace/system/network.h index 82545514bdd..a84bfd453b1 100644 --- a/lib/replace/system/network.h +++ b/lib/replace/system/network.h @@ -332,6 +332,13 @@ typedef unsigned short int sa_family_t; */ # define IOV_MAX 512 # endif +# ifdef __GNU__ + /* + * GNU/Hurd does not have such hardcoded limitations. Use a reasonable + * amount. + */ +# define IOV_MAX 512 +# endif # endif #endif -- 2.47.3