소스 검색

avoid errors in ucontext.h when no feature test macros are defined

Rich Felker 13 년 전
부모
커밋
47e72e10d5
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 3
      include/ucontext.h

+ 5 - 3
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
 }