X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fucontext.h;h=0f75712548c3492f3257f661c973856bfe59dde4;hb=5ff3eea91fa6bdce25b3a35644433f68e076beca;hp=28d04ea88a109a156d03e1ffcb71b0179ab5169d;hpb=c1a9658bd19245ff0fb52d3da567815d822fb622;p=musl diff --git a/include/ucontext.h b/include/ucontext.h index 28d04ea8..0f757125 100644 --- a/include/ucontext.h +++ b/include/ucontext.h @@ -8,14 +8,14 @@ extern "C" { #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 *);