memcheck/tests: Use ucontext_t instead of struct ucontext

glibc 2.26 does not expose struct ucontext anymore.

Signed-off-by: Khem Raj <raj.khem@gmail.com>

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16457
This commit is contained in:
Mark Wielaard 2017-06-29 15:26:30 +00:00
parent 02b719e7b2
commit 2b5eab6a8d
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@ -40,6 +40,7 @@ where XXXXXX is the bug number as listed below.
381272 ppc64 doesn't compile test_isa_2_06_partx.c without VSX support
381289 epoll_pwait can have a NULL sigmask
381274 powerpc too chatty even with --sigill-diagnostics=no
381769 Use ucontext_t instead of struct ucontext
Release 3.13.0 (15 June 2017)

View File

@ -10,7 +10,7 @@
// This test is checking the libc context calls (setcontext, etc.) and
// checks that Valgrind notices their stack changes properly.
typedef struct ucontext mycontext;
typedef ucontext_t mycontext;
mycontext ctx1, ctx2, oldc;
int count;