diff options
Diffstat (limited to 'stdlib')
-rw-r--r-- | stdlib/Makefile | 2 | ||||
-rw-r--r-- | stdlib/ucontext.h | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/stdlib/Makefile b/stdlib/Makefile index 808a8ce..b5e55b0 100644 --- a/stdlib/Makefile +++ b/stdlib/Makefile @@ -26,7 +26,7 @@ headers := stdlib.h bits/stdlib.h bits/stdlib-ldbl.h bits/stdlib-float.h \ monetary.h bits/monetary-ldbl.h \ inttypes.h stdint.h bits/wordsize.h \ errno.h sys/errno.h bits/errno.h bits/types/error_t.h \ - ucontext.h sys/ucontext.h \ + ucontext.h sys/ucontext.h bits/indirect-return.h \ alloca.h fmtmsg.h \ bits/stdlib-bsearch.h sys/random.h bits/stdint-intn.h \ bits/stdint-uintn.h diff --git a/stdlib/ucontext.h b/stdlib/ucontext.h index eec7611..ec63003 100644 --- a/stdlib/ucontext.h +++ b/stdlib/ucontext.h @@ -22,6 +22,9 @@ #include <features.h> +/* Get definition of __INDIRECT_RETURN. */ +#include <bits/indirect-return.h> + /* Get machine dependent definition of data structures. */ #include <sys/ucontext.h> @@ -36,7 +39,8 @@ extern int setcontext (const ucontext_t *__ucp) __THROWNL; /* Save current context in context variable pointed to by OUCP and set context from variable pointed to by UCP. */ extern int swapcontext (ucontext_t *__restrict __oucp, - const ucontext_t *__restrict __ucp) __THROWNL; + const ucontext_t *__restrict __ucp) + __THROWNL __INDIRECT_RETURN; /* Manipulate user context UCP to continue with calling functions FUNC and the ARGC-1 parameters following ARGC when the context is used |