libthread: work around gcc warning on FreeBSD
This commit is contained in:
parent
3d424a64ec
commit
0ac670585c
1 changed files with 1 additions and 1 deletions
|
|
@ -128,7 +128,7 @@ threadalloc(void (*fn)(void*), void *arg, uint stack)
|
||||||
|
|
||||||
/* call makecontext to do the real work. */
|
/* call makecontext to do the real work. */
|
||||||
/* leave a few words open on both ends */
|
/* leave a few words open on both ends */
|
||||||
t->context.uc.uc_stack.ss_sp = t->stk+8;
|
t->context.uc.uc_stack.ss_sp = (void*)(t->stk+8);
|
||||||
t->context.uc.uc_stack.ss_size = t->stksize-64;
|
t->context.uc.uc_stack.ss_size = t->stksize-64;
|
||||||
#if defined(__sun__) && !defined(__MAKECONTEXT_V2_SOURCE) /* sigh */
|
#if defined(__sun__) && !defined(__MAKECONTEXT_V2_SOURCE) /* 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 */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue