X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=include%2Fucontext.h;h=3bb776ed6a86969a530a558ff81506cfc7ccbb4b;hp=28d04ea88a109a156d03e1ffcb71b0179ab5169d;hb=8c741783fc96d559cfe79301c924c217b2905c0c;hpb=c1a9658bd19245ff0fb52d3da567815d822fb622 diff --git a/include/ucontext.h b/include/ucontext.h index 28d04ea8..3bb776ed 100644 --- a/include/ucontext.h +++ b/include/ucontext.h @@ -8,8 +8,8 @@ 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;