selftests/powerpc: Fix to use ucontext_t instead of struct ucontext

With glibc 2.26 'struct ucontext' is removed to improve POSIX
compliance, which breaks powerpc/alignment_handler selftest. Fix the
test by using ucontext_t. Tested on ppc, works with older glibc
versions as well.

Fixes the following:
alignment_handler.c: In function ‘sighandler’:
alignment_handler.c:68:5: error: dereferencing pointer to incomplete type ‘struct ucontext’
ucp->uc_mcontext.gp_regs[PT_NIP] += 4;

Signed-off-by: Harish <harish@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

authored by Harish and committed by Michael Ellerman ecdf06e1 91096175

+1 -1
+1 -1
tools/testing/selftests/powerpc/alignment/alignment_handler.c
··· 57 57 58 58 void sighandler(int sig, siginfo_t *info, void *ctx) 59 59 { 60 - struct ucontext *ucp = ctx; 60 + ucontext_t *ucp = ctx; 61 61 62 62 if (!testing) { 63 63 signal(sig, SIG_DFL);