From: Samuel Thibault Date: Sun, 2 Aug 2020 18:06:08 +0000 (+0000) Subject: ldap_server: fix hurd build X-Git-Tag: talloc-2.3.2~976 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=611e643d14659be8a63e9ca51d5d05659c4b8b6c;p=thirdparty%2Fsamba.git ldap_server: fix hurd build 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 --- 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