X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=include%2Fucontext.h;h=0f75712548c3492f3257f661c973856bfe59dde4;hb=8910efd0e474fab85bf00657a6eeae4d69a87f63;hp=1121761626b65c41977e51473991273abb0670fe;hpb=acfd06df17fd3940e4602af4b9132f61a6a3eb7f;p=musl diff --git a/include/ucontext.h b/include/ucontext.h index 11217616..0f757125 100644 --- a/include/ucontext.h +++ b/include/ucontext.h @@ -4,16 +4,18 @@ extern "C" { #endif +#include + #include -#ifdef _GNU_SOURCE -#define ucontext __ucontext +#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) +#define NGREG (sizeof(gregset_t)/sizeof(greg_t)) #endif struct __ucontext; int getcontext(struct __ucontext *); -void makecontext(struct __ucontext *, void (*)(void), int, ...); +void makecontext(struct __ucontext *, void (*)(), int, ...); int setcontext(const struct __ucontext *); int swapcontext(struct __ucontext *, const struct __ucontext *);