提交 acfd06df 编写于 作者: R Rich Felker

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
上级 07827d1a
...@@ -14,7 +14,7 @@ struct __ucontext; ...@@ -14,7 +14,7 @@ struct __ucontext;
int getcontext(struct __ucontext *); int getcontext(struct __ucontext *);
void makecontext(struct __ucontext *, void (*)(void), int, ...); void makecontext(struct __ucontext *, void (*)(void), int, ...);
int setcontext(const ucontext_t *); int setcontext(const struct __ucontext *);
int swapcontext(struct __ucontext *, const struct __ucontext *); int swapcontext(struct __ucontext *, const struct __ucontext *);
#ifdef __cplusplus #ifdef __cplusplus
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册