projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7dff18
)
avoid errors in ucontext.h when no feature test macros are defined
author
Rich Felker
<dalias@aerifal.cx>
Wed, 29 Jun 2011 21:13:01 +0000
(17:13 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Wed, 29 Jun 2011 21:13:01 +0000
(17:13 -0400)
include/ucontext.h
patch
|
blob
|
history
diff --git
a/include/ucontext.h
b/include/ucontext.h
index cd6d223ec115578f80d2e6fb4aa27b9b53938b0d..87c89cafdacc2c488010a86ae8f09f42ff3ba709 100644
(file)
--- 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 __ucontex
t *);
#ifdef __cplusplus
}