提交 2ad2210a 编写于 作者: P Peter Maydell 提交者: Kevin Wolf

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: NPeter Maydell <peter.maydell@linaro.org>
Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: NKevin Wolf <kwolf@redhat.com>
上级 e3980e28
...@@ -171,8 +171,8 @@ static Coroutine *coroutine_new(void) ...@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册