diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/nios2')
-rw-r--r-- | sysdeps/unix/sysv/linux/nios2/sys/ucontext.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/nios2/sys/ucontext.h b/sysdeps/unix/sysv/linux/nios2/sys/ucontext.h index 72ae1a0..af8d75c 100644 --- a/sysdeps/unix/sysv/linux/nios2/sys/ucontext.h +++ b/sysdeps/unix/sysv/linux/nios2/sys/ucontext.h @@ -34,13 +34,21 @@ # define MCONTEXT_VERSION 2 #endif +#ifdef __USE_MISC +# define __ctx(fld) fld +#else +# define __ctx(fld) __ ## fld +#endif + /* Context to describe whole processor state. */ typedef struct mcontext { - int version; - unsigned long regs[32]; + int __ctx(version); + unsigned long __ctx(regs)[32]; } mcontext_t; +#undef __ctx + /* Userlevel context. */ typedef struct ucontext { |