aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/create.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libthread/create.c')
-rw-r--r--src/libthread/create.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libthread/create.c b/src/libthread/create.c
index f5f0d6c0..5dee4c48 100644
--- a/src/libthread/create.c
+++ b/src/libthread/create.c
@@ -2,6 +2,7 @@
Pqueue _threadpq;
int _threadprocs;
+int __pthread_nonstandard_stacks;
static int nextID(void);
@@ -21,6 +22,7 @@ newthread(Proc *p, void (*f)(void *arg), void *arg, uint stacksize, char *name,
Thread *t;
char *s;
+ __pthread_nonstandard_stacks = 1;
if(stacksize < 32)
sysfatal("bad stacksize %d", stacksize);
t = _threadmalloc(sizeof(Thread), 1);