Преглед на файлове

consistency: use struct __ucontext instead of ucontext_t in prototypes

this is necessary to avoid build errors if feature test macros are not
properly defined when including ucontext.h
Rich Felker преди 13 години
родител
ревизия
acfd06df17
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      include/ucontext.h

+ 1 - 1
include/ucontext.h

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