diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-07-05 03:32:44 +0000 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-08-01 08:54:07 -0500 |
commit | 02d2bd5d57812154cfb978bc2098cf49d551583d (patch) | |
tree | 691f19cd482d076cd8e8767ac79affba0b995d4c /linux-user | |
parent | 65dee38052597b6285eb208125369f01b29ba6c1 (diff) | |
download | qemu-02d2bd5d57812154cfb978bc2098cf49d551583d.tar.gz qemu-02d2bd5d57812154cfb978bc2098cf49d551583d.tar.bz2 qemu-02d2bd5d57812154cfb978bc2098cf49d551583d.zip |
Replace 'struct siginfo' with 'siginfo_t'.
glibc 2.16 will remove the undocumented definition of 'struct siginfo'
from <bits/siginfo.h>.
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 <rjones@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'linux-user')
-rw-r--r-- | linux-user/signal.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linux-user/signal.c b/linux-user/signal.c index 97f30d9547..9be5ac0788 100644 --- a/linux-user/signal.c +++ b/linux-user/signal.c @@ -2849,7 +2849,7 @@ static void setup_rt_frame(int sig, struct target_sigaction *ka, * Arguments to signal handler: * * a0 = signal number - * a1 = pointer to struct siginfo + * a1 = pointer to siginfo_t * a2 = pointer to struct ucontext * * $25 and PC point to the signal handler, $29 points to the @@ -3255,7 +3255,7 @@ struct target_signal_frame { }; struct rt_signal_frame { - struct siginfo info; + siginfo_t info; struct ucontext uc; uint32_t tramp[2]; }; @@ -3474,9 +3474,9 @@ struct target_signal_frame { }; struct rt_signal_frame { - struct siginfo *pinfo; + siginfo_t *pinfo; void *puc; - struct siginfo info; + siginfo_t info; struct ucontext uc; uint8_t retcode[8]; /* Trampoline code. */ }; |