diff options
author | rsc <devnull@localhost> | 2004-04-20 02:03:38 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-04-20 02:03:38 +0000 |
commit | a0f1e21ff939612898d63ae2245e47dffc1a8153 (patch) | |
tree | 581f62db3bad2c54d60cb54b6e577787f55071af /src/libthread | |
parent | e637c944febf271252e59742aa108d6e0a527eb7 (diff) | |
download | plan9port-a0f1e21ff939612898d63ae2245e47dffc1a8153.tar.gz plan9port-a0f1e21ff939612898d63ae2245e47dffc1a8153.tar.bz2 plan9port-a0f1e21ff939612898d63ae2245e47dffc1a8153.zip |
make things work on SunOS
Diffstat (limited to 'src/libthread')
-rw-r--r-- | src/libthread/create.c | 2 | ||||
-rw-r--r-- | src/libthread/sched.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/libthread/create.c b/src/libthread/create.c index 518eaae6..a8647f94 100644 --- a/src/libthread/create.c +++ b/src/libthread/create.c @@ -25,7 +25,7 @@ newthread(Proc *p, void (*f)(void *arg), void *arg, uint stacksize, char *name, sysfatal("bad stacksize %d", stacksize); t = _threadmalloc(sizeof(Thread), 1); s = _threadmalloc(stacksize, 0); - t->stk = (char*)s; + t->stk = (uchar*)s; t->stksize = stacksize; _threaddebugmemset(s, 0xFE, stacksize); _threadinitstack(t, f, arg); diff --git a/src/libthread/sched.c b/src/libthread/sched.c index 250a19a2..d193d6ce 100644 --- a/src/libthread/sched.c +++ b/src/libthread/sched.c @@ -1,3 +1,4 @@ +#include <u.h> #include <signal.h> #include <errno.h> #include "threadimpl.h" |