From 039ff8ce0565fd898d3d0b24c8ce547b5bd8ee30 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 3 Dec 2010 19:21:59 +0000 Subject: *** empty log message *** --- coro.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'coro.c') diff --git a/coro.c b/coro.c index cbc5eeb..a9137f3 100644 --- a/coro.c +++ b/coro.c @@ -404,7 +404,11 @@ coro_create (coro_context *ctx, coro_func coro, void *arg, void *sptr, long ssiz args.main = &nctx; pthread_attr_init (&attr); +#if __UCLIBC__ + pthread_attr_setstacksize (&attr, (size_t)ssize); +#else pthread_attr_setstack (&attr, sptr, (size_t)ssize); +#endif pthread_attr_setscope (&attr, PTHREAD_SCOPE_PROCESS); pthread_create (&ctx->id, &attr, coro_init, &args); -- cgit v1.2.3