void-packages/srcpkgs/musl/patches/bigstack-option.patch

15 lines
419 B
Diff

--- src/internal/pthread_impl.h.orig 2017-06-28 22:52:51.000000000 +0000
+++ src/internal/pthread_impl.h 2017-06-28 22:52:59.297555622 +0000
@@ -141,7 +141,11 @@
void __block_app_sigs(void *);
void __restore_sigs(void *);
+#ifdef VOID_BIGSTACK
+#define DEFAULT_STACK_SIZE 8388608
+#else
#define DEFAULT_STACK_SIZE 81920
+#endif
#define DEFAULT_GUARD_SIZE 4096
#define __ATTRP_C11_THREAD ((void*)(uintptr_t)-1)