Skip to content

Commit

Permalink
coroutine-sigaltstack.c: Use stack_t, not struct sigaltstack
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
pm215 authored and kevmw committed Nov 30, 2012
1 parent e3980e2 commit 2ad2210
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coroutine-sigaltstack.c
Expand Up @@ -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;
Expand Down

0 comments on commit 2ad2210

Please sign in to comment.