oops sunos
This commit is contained in:
parent
399ab50aa4
commit
2b3b1e8984
1 changed files with 3 additions and 3 deletions
|
|
@ -121,9 +121,9 @@ threadalloc(void (*fn)(void*), void *arg, uint stack)
|
||||||
t->context.uc.uc_stack.ss_size = t->stksize-64;
|
t->context.uc.uc_stack.ss_size = t->stksize-64;
|
||||||
#ifdef __sun__ /* sigh */
|
#ifdef __sun__ /* sigh */
|
||||||
/* can avoid this with __MAKECONTEXT_V2_SOURCE but only on SunOS 5.9 */
|
/* can avoid this with __MAKECONTEXT_V2_SOURCE but only on SunOS 5.9 */
|
||||||
t->context.uc_stack.ss_sp =
|
t->context.uc.uc_stack.ss_sp =
|
||||||
(char*)t->context.uc_stack.ss_sp
|
(char*)t->context.uc.uc_stack.ss_sp
|
||||||
+t->context.uc_stack.ss_size;
|
+t->context.uc.uc_stack.ss_size;
|
||||||
#endif
|
#endif
|
||||||
makecontext(&t->context.uc, (void(*)())threadstart, 1, t);
|
makecontext(&t->context.uc, (void(*)())threadstart, 1, t);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue