]> git.proxmox.com Git - qemu.git/commitdiff
coroutine-sigaltstack.c: Use stack_t, not struct sigaltstack
authorPeter Maydell <peter.maydell@linaro.org>
Sat, 10 Nov 2012 21:47:52 +0000 (21:47 +0000)
committerKevin Wolf <kwolf@redhat.com>
Fri, 30 Nov 2012 10:33:24 +0000 (11:33 +0100)
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>
coroutine-sigaltstack.c

index 861e87805af61a6f13b49bf8b4aac5518c7f2763..39dbaa5da1392dd4466c46544478f6bf58218dfb 100644 (file)
@@ -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;