diff options
Diffstat (limited to 'sys/sys/ucontext.h')
-rw-r--r-- | sys/sys/ucontext.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/sys/ucontext.h b/sys/sys/ucontext.h index 194b63a..dcce16e 100644 --- a/sys/sys/ucontext.h +++ b/sys/sys/ucontext.h @@ -53,6 +53,20 @@ typedef struct __ucontext { int __spare__[4]; } ucontext_t; +#if defined(_KERNEL) && defined(COMPAT_FREEBSD4) +#if defined(__i386__) || defined(__alpha__) +struct ucontext4 { + sigset_t uc_sigmask; + struct mcontext4 uc_mcontext; + struct ucontext4 *uc_link; + stack_t uc_stack; + int __spare__[8]; +}; +#else /* __i386__ || __alpha__ */ +#define ucontext4 ucontext +#endif /* __i386__ || __alpha__ */ +#endif /* _KERNEL */ + #ifndef _KERNEL __BEGIN_DECLS |