mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
coroutine-sigaltstack.c: Use stack_t, not struct sigaltstack
Use the POSIX-specified stack_t type as the argument to sigaltstack() rather than the legacy struct sigaltstack. This allows us to compile on MacOSX with --with-coroutine=sigaltstack. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
e3980e28bb
commit
2ad2210a7d
1 changed files with 2 additions and 2 deletions
|
@ -171,8 +171,8 @@ static Coroutine *coroutine_new(void)
|
||||||
CoroutineThreadState *coTS;
|
CoroutineThreadState *coTS;
|
||||||
struct sigaction sa;
|
struct sigaction sa;
|
||||||
struct sigaction osa;
|
struct sigaction osa;
|
||||||
struct sigaltstack ss;
|
stack_t ss;
|
||||||
struct sigaltstack oss;
|
stack_t oss;
|
||||||
sigset_t sigs;
|
sigset_t sigs;
|
||||||
sigset_t osigs;
|
sigset_t osigs;
|
||||||
jmp_buf old_env;
|
jmp_buf old_env;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue