libthread: use mmap to allocate OpenBSD stacks

Should fix faults on OpenBSD.

Fixes #218.
Fixes #226.
This commit is contained in:
Russ Cox 2020-01-14 12:40:09 -05:00
parent 4ae529dbfe
commit 8c573cab68
6 changed files with 61 additions and 8 deletions

View file

@ -209,3 +209,5 @@ extern void _threadsetupdaemonize(void);
extern void _threaddodaemonize(char*);
extern void _threadpexit(void);
extern void _threaddaemonize(void);
extern void *_threadstkalloc(int);
extern void _threadstkfree(void*, int);