about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-06-29 17:13:01 -0400
committerRich Felker <dalias@aerifal.cx>2011-06-29 17:13:01 -0400
commit47e72e10d5e1c7e88b8e419586baf55b12141446 (patch)
tree591ab5e9c4b0e0999313ed57b9fdf3025a3ee45f /include
parentf7dff1852b996363061e04531a15a3403351c375 (diff)
downloadmusl-47e72e10d5e1c7e88b8e419586baf55b12141446.tar.gz
musl-47e72e10d5e1c7e88b8e419586baf55b12141446.tar.xz
musl-47e72e10d5e1c7e88b8e419586baf55b12141446.zip
avoid errors in ucontext.h when no feature test macros are defined
Diffstat (limited to 'include')
-rw-r--r--include/ucontext.h8
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
 }