]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ldap_server: fix hurd build
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 2 Aug 2020 18:06:08 +0000 (18:06 +0000)
committerRalph Boehme <slow@samba.org>
Mon, 3 Aug 2020 09:39:02 +0000 (09:39 +0000)
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

lib/replace/system/network.h

index 82545514bdd0a49dec09dbdcd02b21b8d8917921..a84bfd453b1e2b31267b62371d55715e4d3c806c 100644 (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