blob: cb862c4b960065f34ee22d2125366147473b2a5d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-aa,v 1.2 2007/12/09 22:17:54 abs Exp $
--- alpine/after.c.orig 2007-11-16 22:38:57.000000000 +0000
+++ alpine/after.c
@@ -69,8 +69,10 @@ start_after(AFTER_S *a)
/* Initialize and set thread detached attribute */
pthread_attr_init(&attr);
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
+#if defined(PTHREAD_STACK_MIN)
stack = PTHREAD_STACK_MIN + 0x10000;
pthread_attr_setstacksize(&attr, stack);
+#endif /* defined(PTHREAD_STACK_MIN) */
if((rc = pthread_create(&after_thread, &attr, do_after, (void *) a)) != 0){
after_active = 0;
|