avoid errors in ucontext.h when no feature test macros are defined
authorRich Felker <dalias@aerifal.cx>
Wed, 29 Jun 2011 21:13:01 +0000 (17:13 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 29 Jun 2011 21:13:01 +0000 (17:13 -0400)
include/ucontext.h

index cd6d223..87c89ca 100644 (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
 }