work around regression building for armhf with clang (compiler bug)
[musl.git] / include / ucontext.h
blob3bb776ed6a86969a530a558ff81506cfc7ccbb4b
1 #ifndef _UCONTEXT_H
2 #define _UCONTEXT_H
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
7 #include <features.h>
9 #include <signal.h>
11 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
12 #define NGREG (sizeof(gregset_t)/sizeof(greg_t))
13 #endif
15 struct __ucontext;
17 int getcontext(struct __ucontext *);
18 void makecontext(struct __ucontext *, void (*)(void), int, ...);
19 int setcontext(const struct __ucontext *);
20 int swapcontext(struct __ucontext *, const struct __ucontext *);
22 #ifdef __cplusplus
24 #endif
25 #endif