diff options
author | rsc <devnull@localhost> | 2006-06-04 16:06:49 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-06-04 16:06:49 +0000 |
commit | 17558fbe2d50f3ca908edae3b1836c71b5d9fe00 (patch) | |
tree | c22f79c5240c76fb7ecd98efb63735eeb637da59 /src/libthread/threadimpl.h | |
parent | 14695b90acb1226ee1b137350e6dbbbc73c2f0e7 (diff) | |
download | plan9port-17558fbe2d50f3ca908edae3b1836c71b5d9fe00.tar.gz plan9port-17558fbe2d50f3ca908edae3b1836c71b5d9fe00.tar.bz2 plan9port-17558fbe2d50f3ca908edae3b1836c71b5d9fe00.zip |
set RFNOTEG when we can
Diffstat (limited to 'src/libthread/threadimpl.h')
-rw-r--r-- | src/libthread/threadimpl.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libthread/threadimpl.h b/src/libthread/threadimpl.h index 12b8a998..bc0667f7 100644 --- a/src/libthread/threadimpl.h +++ b/src/libthread/threadimpl.h @@ -46,6 +46,14 @@ extern void makecontext(ucontext_t*, void(*)(), int, ...); extern pid_t rfork_thread(int, void*, int(*)(void*), void*); #endif +#if defined(__sun__) +# define mcontext libthread_mcontext +# define mcontext_t libthread_mcontext_t +# define ucontext libthread_ucontext +# define ucontext_t libthread_ucontext_t +# include "sparc-ucontext.h" +#endif + #if defined(__arm__) int getmcontext(mcontext_t*); void setmcontext(const mcontext_t*); @@ -53,6 +61,7 @@ void setmcontext(const mcontext_t*); #define getcontext(u) getmcontext(&(u)->uc_mcontext) #endif + typedef struct Context Context; typedef struct Execjob Execjob; typedef struct Proc Proc; |