From 17558fbe2d50f3ca908edae3b1836c71b5d9fe00 Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 4 Jun 2006 16:06:49 +0000 Subject: set RFNOTEG when we can --- src/libthread/threadimpl.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/libthread/threadimpl.h') 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; -- cgit v1.2.3