git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2394
d4fa192b-c00b-0410-8231-
f00ffab90ce4
vb = calloc(sizeof *vb, 1);
AN(vb);
- if (initial == 0)
+ if (initial == 0) {
+#ifdef HAVE_GETDTABLESIZE
+ initial = getdtablesize();
+#else
initial = VBITMAP_LUMP;
+#endif
+ }
vbit_expand(vb, initial);
return (vb);
}
AC_CHECK_FUNCS([socket])
AC_CHECK_FUNCS([strptime])
AC_CHECK_FUNCS([fmtcheck])
+AC_CHECK_FUNCS([getdtablesize])
# Don't look for sendfile at all, none of them work
# anyway. (don't tell when done with passed mem-range)