avoid errors in ucontext.h when no feature test macros are defined

This commit is contained in:
Rich Felker 2011-06-29 17:13:01 -04:00
parent f7dff1852b
commit 47e72e10d5
1 changed files with 5 additions and 3 deletions

View File

@ -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
}