summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2010-12-03 20:01:34 +0000
committerroot <root>2010-12-03 20:01:34 +0000
commite67a54d9b79d17dd9b4309570d19e6bdc170626c (patch)
treefe6e182e57e5734864cc398fdee25c00e378b347
parent039ff8ce0565fd898d3d0b24c8ce547b5bd8ee30 (diff)
*** empty log message ***rel-5_37
-rw-r--r--coro.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/coro.c b/coro.c
index a9137f3..cd79d58 100644
--- a/coro.c
+++ b/coro.c
@@ -212,8 +212,8 @@ coro_create (coro_context *ctx, coro_func coro, void *arg, void *sptr, long ssiz
}
/* set the new stack */
- nstk.ss_sp = STACK_ADJUST_PTR (sptr,ssize); /* yes, some platforms (IRIX) get this wrong. */
- nstk.ss_size = STACK_ADJUST_SIZE (sptr,ssize);
+ nstk.ss_sp = STACK_ADJUST_PTR (sptr, ssize); /* yes, some platforms (IRIX) get this wrong. */
+ nstk.ss_size = STACK_ADJUST_SIZE (sptr, ssize);
nstk.ss_flags = 0;
if (sigaltstack (&nstk, &ostk) < 0)
@@ -405,7 +405,8 @@ coro_create (coro_context *ctx, coro_func coro, void *arg, void *sptr, long ssiz
pthread_attr_init (&attr);
#if __UCLIBC__
- pthread_attr_setstacksize (&attr, (size_t)ssize);
+ /* exists, but is borked */
+ /*pthread_attr_setstacksize (&attr, (size_t)ssize);*/
#else
pthread_attr_setstack (&attr, sptr, (size_t)ssize);
#endif