diff options
author | rsc <devnull@localhost> | 2005-07-27 13:06:50 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-07-27 13:06:50 +0000 |
commit | d08f40666b32fd5bce69f1b40ea18d2e52e97a26 (patch) | |
tree | 1f5f6155ec020049aefedaae4edfa738cef64433 /src/libthread | |
parent | 0e4068e8c46ae0b45616fe13ac01a449b68fbc06 (diff) | |
download | plan9port-d08f40666b32fd5bce69f1b40ea18d2e52e97a26.tar.gz plan9port-d08f40666b32fd5bce69f1b40ea18d2e52e97a26.tar.bz2 plan9port-d08f40666b32fd5bce69f1b40ea18d2e52e97a26.zip |
sun
Diffstat (limited to 'src/libthread')
-rw-r--r-- | src/libthread/thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libthread/thread.c b/src/libthread/thread.c index 387b6400..4d55b06f 100644 --- a/src/libthread/thread.c +++ b/src/libthread/thread.c @@ -126,7 +126,7 @@ threadalloc(void (*fn)(void*), void *arg, uint stack) /* leave a few words open on both ends */ t->context.uc.uc_stack.ss_sp = t->stk+8; t->context.uc.uc_stack.ss_size = t->stksize-64; -#ifdef __sun__ /* sigh */ +#if defined(__sun__) && !defined(__MAKECONTEXT_V2_SOURCE) /* sigh */ /* can avoid this with __MAKECONTEXT_V2_SOURCE but only on SunOS 5.9 */ t->context.uc.uc_stack.ss_sp = (char*)t->context.uc.uc_stack.ss_sp |