consistency: use struct __ucontext instead of ucontext_t in prototypes
authorRich Felker <dalias@aerifal.cx>
Sun, 31 Jul 2011 04:10:29 +0000 (00:10 -0400)
committerRich Felker <dalias@aerifal.cx>
Sun, 31 Jul 2011 04:10:29 +0000 (00:10 -0400)
this is necessary to avoid build errors if feature test macros are not
properly defined when including ucontext.h

include/ucontext.h

index 87c89ca..1121761 100644 (file)
@@ -14,7 +14,7 @@ struct __ucontext;
 
 int  getcontext(struct __ucontext *);
 void makecontext(struct __ucontext *, void (*)(void), int, ...);
-int  setcontext(const ucontext_t *);
+int  setcontext(const struct __ucontext *);
 int  swapcontext(struct __ucontext *, const struct __ucontext *);
 
 #ifdef __cplusplus