fixup mcontext stuff to expost gregset_t/fpregset_t as appropriate
This commit is contained in:
parent
4b75f4ed8d
commit
a8da6c2f28
8 changed files with 35 additions and 12 deletions
|
|
@ -13,6 +13,7 @@ extern "C" {
|
|||
|
||||
#ifdef _GNU_SOURCE
|
||||
#define __siginfo siginfo
|
||||
#define __ucontext ucontext
|
||||
#endif
|
||||
|
||||
#define __NEED_size_t
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@ extern "C" {
|
|||
|
||||
#include <signal.h>
|
||||
|
||||
#ifdef _GNU_SOURCE
|
||||
#define ucontext __ucontext
|
||||
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||
#define NGREG (sizeof(gregset_t)/sizeof(greg_t))
|
||||
#endif
|
||||
|
||||
struct __ucontext;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue