openbsd-ports/www/varnish/patches/patch-bin_varnishd_mgt_pool_c

16 lines
465 B
Plaintext

$OpenBSD: patch-bin_varnishd_mgt_pool_c,v 1.2 2010/09/11 13:03:46 jim Exp $
--- bin/varnishd/mgt_pool.c.orig Wed May 5 03:32:03 2010
+++ bin/varnishd/mgt_pool.c Sun Jun 27 14:10:25 2010
@@ -80,7 +80,11 @@ tweak_stack_size(struct cli *cli, const struct parspec
unsigned low, u;
char buf[12];
+#if defined (__OpenBSD__)
+ low = PTHREAD_STACK_MIN;
+#else
low = sysconf(_SC_THREAD_STACK_MIN);
+#endif
if (arg != NULL && !strcmp(arg, "32")) {
u = 65536;