From 02d2bd5d57812154cfb978bc2098cf49d551583d Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 5 Jul 2012 03:32:44 +0000 Subject: Replace 'struct siginfo' with 'siginfo_t'. glibc 2.16 will remove the undocumented definition of 'struct siginfo' from . This change is already present in glibc 2.15.90, so qemu compilation of certain targets (eg. cris-user) breaks. This struct was always typedef'd to be the same as 'siginfo_t' which is what POSIX documents, so use that instead. Signed-off-by: Richard W.M. Jones Reviewed-by: Peter Maydell Signed-off-by: Anthony Liguori --- user-exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'user-exec.c') diff --git a/user-exec.c b/user-exec.c index b2a4261eca..1a9c276eb3 100644 --- a/user-exec.c +++ b/user-exec.c @@ -588,7 +588,7 @@ int cpu_signal_handler(int host_signum, void *pinfo, int cpu_signal_handler(int host_signum, void *pinfo, void *puc) { - struct siginfo *info = pinfo; + siginfo_t *info = pinfo; struct ucontext *uc = puc; unsigned long pc = uc->uc_mcontext.sc_iaoq[0]; uint32_t insn = *(uint32_t *)pc; -- cgit v1.2.1