mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-07 11:20:04 -04:00
16 lines
583 B
Plaintext
16 lines
583 B
Plaintext
$NetBSD: patch-aa,v 1.17 2013/05/29 11:11:12 wiz Exp $
|
|
--- mono/io-layer/collection.c.orig 2012-12-05 17:44:35.000000000 +0000
|
|
+++ mono/io-layer/collection.c
|
|
@@ -57,7 +57,11 @@ void _wapi_collection_init (void)
|
|
|
|
#if defined(HAVE_PTHREAD_ATTR_SETSTACKSIZE)
|
|
if (set_stacksize == 0) {
|
|
+#ifdef PTHREAD_STACK_MIN
|
|
ret = pthread_attr_setstacksize (&attr, MAX (65536, PTHREAD_STACK_MIN));
|
|
+#else
|
|
+ ret = pthread_attr_setstacksize (&attr, 65536);
|
|
+#endif
|
|
g_assert (ret == 0);
|
|
} else if (set_stacksize == 1) {
|
|
ret = pthread_attr_setstacksize (&attr, 131072);
|