From a8da6c2f287037cbacc65578a268f355760eaf8e Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 25 Nov 2012 23:04:23 -0500 Subject: fixup mcontext stuff to expost gregset_t/fpregset_t as appropriate --- include/ucontext.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/ucontext.h') diff --git a/include/ucontext.h b/include/ucontext.h index 28d04ea8..3bb776ed 100644 --- a/include/ucontext.h +++ b/include/ucontext.h @@ -8,8 +8,8 @@ extern "C" { #include -#ifdef _GNU_SOURCE -#define ucontext __ucontext +#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) +#define NGREG (sizeof(gregset_t)/sizeof(greg_t)) #endif struct __ucontext; -- cgit v1.2.1