From: Peter Maydell Date: Sat, 10 Nov 2012 21:47:52 +0000 (+0000) Subject: coroutine-sigaltstack.c: Use stack_t, not struct sigaltstack X-Git-Tag: qemu-xen-4.3.0-rc1~17^2~4^2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=2ad2210a7d2483c4c98423ebd59fad87c6124096;p=qemu-upstream-4.3-testing.git 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 Reviewed-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf --- diff --git a/coroutine-sigaltstack.c b/coroutine-sigaltstack.c index 861e87805..39dbaa5da 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;