X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fsetjmp.h;h=28ff92e402b60daa14bcde580e868219ff413caf;hb=e1e4d6b269dd5c03480d55b031f2932df0490c96;hp=88fb9508176241bd3688b942c2daad134a2b53f0;hpb=419ae6d5c95629d3ebaff6f1880d52cb027ba924;p=musl diff --git a/include/setjmp.h b/include/setjmp.h index 88fb9508..28ff92e4 100644 --- a/include/setjmp.h +++ b/include/setjmp.h @@ -11,10 +11,11 @@ extern "C" { #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) \ || defined(_BSD_SOURCE) -typedef unsigned long sigjmp_buf[(128+sizeof(jmp_buf))/sizeof(long)]; -#ifdef _GNU_SOURCE -#define jmp_buf sigjmp_buf -#endif +typedef struct { + jmp_buf __jb; + unsigned long __fl; + unsigned long __ss[128]; +} sigjmp_buf[1]; int sigsetjmp (sigjmp_buf, int); void siglongjmp (sigjmp_buf, int); #endif