projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
eb0d836
)
<ucontext.h>: Conditionalize prototypes for {get,set,make,swap}context().
author
Sascha Wildner <saw@online.de>
Wed, 21 Sep 2011 05:48:43 +0000 (07:48 +0200)
committer
Sascha Wildner <saw@online.de>
Wed, 21 Sep 2011 05:48:43 +0000 (07:48 +0200)
They are gone per OpenGroup Specifications Issue 7.
However, keep them visible in our default environment.
sys/sys/ucontext.h
patch
|
blob
|
blame
|
history
diff --git
a/sys/sys/ucontext.h
b/sys/sys/ucontext.h
index
cf7d160
..
fa31f42
100644
(file)
--- a/
sys/sys/ucontext.h
+++ b/
sys/sys/ucontext.h
@@
-57,10
+57,12
@@
typedef struct __ucontext {
__BEGIN_DECLS
+#if __BSD_VISIBLE || __POSIX_VISIBLE < 200809
int getcontext(ucontext_t *);
int setcontext(const ucontext_t *);
void makecontext(ucontext_t *, void (*)(void), int, ...);
int swapcontext(ucontext_t *, const ucontext_t *);
+#endif
__END_DECLS