fixup mcontext stuff to expost gregset_t/fpregset_t as appropriate

This commit is contained in:
Rich Felker
2012-11-25 23:04:23 -05:00
parent 4b75f4ed8d
commit a8da6c2f28
8 changed files with 35 additions and 12 deletions

View File

@@ -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;