summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-11-25 23:04:23 -0500
committerRich Felker <dalias@aerifal.cx>2012-11-25 23:04:23 -0500
commita8da6c2f287037cbacc65578a268f355760eaf8e (patch)
treee325def382b70f767adfa8ac844ee899936eacf4 /include
parent4b75f4ed8d08b26d4bf2ac96191b395218ad888e (diff)
downloadmusl-a8da6c2f287037cbacc65578a268f355760eaf8e.tar.gz
fixup mcontext stuff to expost gregset_t/fpregset_t as appropriate
Diffstat (limited to 'include')
-rw-r--r--include/signal.h1
-rw-r--r--include/ucontext.h4
2 files changed, 3 insertions, 2 deletions
diff --git a/include/signal.h b/include/signal.h
index bef8ae04..860f7428 100644
--- a/include/signal.h
+++ b/include/signal.h
@@ -13,6 +13,7 @@ extern "C" {
#ifdef _GNU_SOURCE
#define __siginfo siginfo
+#define __ucontext ucontext
#endif
#define __NEED_size_t
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 <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;