diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-06-29 17:13:01 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-06-29 17:13:01 -0400 |
commit | 47e72e10d5e1c7e88b8e419586baf55b12141446 (patch) | |
tree | 591ab5e9c4b0e0999313ed57b9fdf3025a3ee45f /include/ucontext.h | |
parent | f7dff1852b996363061e04531a15a3403351c375 (diff) | |
download | musl-47e72e10d5e1c7e88b8e419586baf55b12141446.tar.gz musl-47e72e10d5e1c7e88b8e419586baf55b12141446.tar.bz2 musl-47e72e10d5e1c7e88b8e419586baf55b12141446.tar.xz musl-47e72e10d5e1c7e88b8e419586baf55b12141446.zip |
avoid errors in ucontext.h when no feature test macros are defined
Diffstat (limited to 'include/ucontext.h')
-rw-r--r-- | include/ucontext.h | 8 |
1 files 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 } |