1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-24 02:04:21 +03:00

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
This commit is contained in:
Samuel Thibault 2020-08-02 18:06:08 +00:00 committed by Ralph Boehme
parent 06f87f14b3
commit 611e643d14

View File

@ -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