compel/ppc64: glibc renamed ucontext to ucontext_t

The upcoming glibc release renamed 'struct ucontext' to
'struct ucontext_t':

https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=251287734e89a52da3db682a8241eb6bccc050c9;hp=c86ed71d633c22d6f638576f7660c52a5f783d66

Instead of using 'struct ucontext' this patch changes it
to the typedef ucontext_t which already exists in older and
new versions of glibc.

Signed-off-by: Adrian Reber <areber@redhat.com>
Reviewed-by: Dmitry Safonov <dsafonov@virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
Adrian Reber 2017-07-20 12:08:35 -04:00 committed by Pavel Emelyanov
parent 3ef506befc
commit 36576e2096
2 changed files with 4 additions and 4 deletions

View file

@ -28,12 +28,12 @@
#define TRAMP_SIZE 6
/*
* ucontext defined in /usr/include/powerpc64le-linux-gnu/sys/ucontext.h
* ucontext_t defined in /usr/include/powerpc64le-linux-gnu/sys/ucontext.h
*/
struct rt_sigframe {
/* sys_rt_sigreturn requires the ucontext be the first field */
struct ucontext uc;
struct ucontext uc_transact; /* Transactional state */
ucontext_t uc;
ucontext_t uc_transact; /* Transactional state */
unsigned long _unused[2];
unsigned int tramp[TRAMP_SIZE];
struct rt_siginfo *pinfo;