[PATCH] replace struct ucontext with ucontext_t

Dmitry V. Levin ldv at altlinux.org
Sat Jul 1 10:46:35 UTC 2017


On Wed, Jun 28, 2017 at 11:43:07AM -0700, Khem Raj wrote:
> glibc >= 2.26 has dropped the tag struct ucontext
> from ucontext_t type
> 
> Signed-off-by: Khem Raj <raj.khem at gmail.com>
> ---
>  linux/arm/arch_sigreturn.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/linux/arm/arch_sigreturn.c b/linux/arm/arch_sigreturn.c
> index b60dad8..a2b7100 100644
> --- a/linux/arm/arch_sigreturn.c
> +++ b/linux/arm/arch_sigreturn.c
> @@ -9,7 +9,7 @@ arch_sigreturn(struct tcb *tcp)
>  #ifdef AARCH64
>  		tcp->currpers == 0 ?
>  			(*aarch64_sp_ptr + SIZEOF_STRUCT_SIGINFO +
> -			 offsetof(struct ucontext, uc_sigmask)) :
> +			 offsetof(ucontext_t, uc_sigmask)) :
>  #endif
>  			(*arm_sp_ptr +
>  			 OFFSETOF_STRUCT_UCONTEXT_UC_SIGMASK);

Applied, thanks.

linux/tile/arch_sigreturn.c needed a similar change,
applied it along with this one.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20170701/ea17cebf/attachment.bin>


More information about the Strace-devel mailing list