From acfd06df17fd3940e4602af4b9132f61a6a3eb7f Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 31 Jul 2011 00:10:29 -0400 Subject: [PATCH] consistency: use struct __ucontext instead of ucontext_t in prototypes this is necessary to avoid build errors if feature test macros are not properly defined when including ucontext.h --- include/ucontext.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ucontext.h b/include/ucontext.h index 87c89caf..11217616 100644 --- a/include/ucontext.h +++ b/include/ucontext.h @@ -14,7 +14,7 @@ struct __ucontext; int getcontext(struct __ucontext *); void makecontext(struct __ucontext *, void (*)(void), int, ...); -int setcontext(const ucontext_t *); +int setcontext(const struct __ucontext *); int swapcontext(struct __ucontext *, const struct __ucontext *); #ifdef __cplusplus -- 2.20.1