From 47e72e10d5e1c7e88b8e419586baf55b12141446 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 29 Jun 2011 17:13:01 -0400 Subject: [PATCH] avoid errors in ucontext.h when no feature test macros are defined --- include/ucontext.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/ucontext.h b/include/ucontext.h index cd6d223e..87c89caf 100644 --- a/include/ucontext.h +++ b/include/ucontext.h @@ -10,10 +10,12 @@ extern "C" { #define ucontext __ucontext #endif -int getcontext(ucontext_t *); -void makecontext(ucontext_t *, void (*)(void), int, ...); +struct __ucontext; + +int getcontext(struct __ucontext *); +void makecontext(struct __ucontext *, void (*)(void), int, ...); int setcontext(const ucontext_t *); -int swapcontext(ucontext_t *, const ucontext_t *); +int swapcontext(struct __ucontext *, const struct __ucontext *); #ifdef __cplusplus } -- 2.20.1