aboutsummaryrefslogtreecommitdiff
path: root/coroutine-sigaltstack.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2012-11-10 21:47:52 +0000
committerKevin Wolf <kwolf@redhat.com>2012-11-30 11:33:24 +0100
commit2ad2210a7d2483c4c98423ebd59fad87c6124096 (patch)
treec99333605d3549c7defb1f197219273dc3383016 /coroutine-sigaltstack.c
parente3980e28bb888bf643054770452998d1b4319609 (diff)
downloadqemu-2ad2210a7d2483c4c98423ebd59fad87c6124096.zip
qemu-2ad2210a7d2483c4c98423ebd59fad87c6124096.tar.gz
qemu-2ad2210a7d2483c4c98423ebd59fad87c6124096.tar.bz2
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>
Diffstat (limited to 'coroutine-sigaltstack.c')
-rw-r--r--coroutine-sigaltstack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coroutine-sigaltstack.c b/coroutine-sigaltstack.c
index 861e878..39dbaa5 100644
--- a/coroutine-sigaltstack.c
+++ b/coroutine-sigaltstack.c
@@ -171,8 +171,8 @@ static Coroutine *coroutine_new(void)
CoroutineThreadState *coTS;
struct sigaction sa;
struct sigaction osa;
- struct sigaltstack ss;
- struct sigaltstack oss;
+ stack_t ss;
+ stack_t oss;
sigset_t sigs;
sigset_t osigs;
jmp_buf old_env;