diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-08-02 18:06:08 +0000 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2020-08-03 09:39:02 +0000 |
commit | 611e643d14659be8a63e9ca51d5d05659c4b8b6c (patch) | |
tree | ff90686eb871379b24babb087c59592ce2d85622 /lib/replace | |
parent | 06f87f14b37e08e6f78892b2f768282a742359df (diff) | |
download | samba-611e643d14659be8a63e9ca51d5d05659c4b8b6c.tar.gz |
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 <samuel.thibault@ens-lyon.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Mon Aug 3 09:39:02 UTC 2020 on sn-devel-184
Diffstat (limited to 'lib/replace')
-rw-r--r-- | lib/replace/system/network.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 |