Replace 'struct ucontext' with 'ucontext_t' type
authorKhem Raj <raj.khem@gmail.com>
Wed, 28 Jun 2017 20:44:52 +0000 (13:44 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 20 Jul 2017 09:10:28 +0000 (10:10 +0100)
commit04b33e21866412689f18b7ad6daf0a54d8f959a7
tree523d1dd852e384caa38fb6de02b12891dfe6e9ed
parentd4e59218ab80e86015753782fb5378767a51ccd0
Replace 'struct ucontext' with 'ucontext_t' type

glibc used to have:

   typedef struct ucontext { ... } ucontext_t;

glibc now has:

   typedef struct ucontext_t { ... } ucontext_t;

(See https://sourceware.org/bugzilla/show_bug.cgi?id=21457
 for detail and rationale for the glibc change)

However, QEMU used "struct ucontext" in declarations. This is a
private name and compatibility cannot be guaranteed. Switch to
only using the standardized type name.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Message-id: 20170628204452.41230-1-raj.khem@gmail.com
Cc: Kamil Rytarowski <kamil@netbsd.org>
Cc: Riku Voipio <riku.voipio@iki.fi>
Cc: Laurent Vivier <laurent@vivier.eu>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
[PMM: Rewrote commit message, based mostly on the one from
 Nathaniel McCallum]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
linux-user/host/aarch64/hostdep.h
linux-user/host/arm/hostdep.h
linux-user/host/i386/hostdep.h
linux-user/host/ppc64/hostdep.h
linux-user/host/s390x/hostdep.h
linux-user/host/x86_64/hostdep.h
linux-user/signal.c
tests/tcg/test-i386.c
user-exec.c