coroutine-sigaltstack.c: Use stack_t, not struct sigaltstack
PATCH 1/1 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.
---
Tested on Linux and MacOSX.
coroutine-sigaltstack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
coroutine-sigaltstack.c +2 -2
@@ -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;
Signature · 1 line
1.7.11.4
Quoted 10 lines · Peter Maydell
Use the POSIX-specified
stack_ttype as the argument tosigaltstack()rather than the legacy struct sigaltstack. This allows us to compile on MacOSX with --with-coroutine=sigaltstack.Signed-off-by Peter Maydell <[email protected]>---
Tested on Linux and MacOSX.coroutine-sigaltstack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Kevin Wolf
AppliedAm 12.11.2012 13:57, schrieb Stefan Hajnoczi:
Quoted 6 lines
Quoted 4 lines · Peter Maydell
Use the POSIX-specified
stack_ttype as the argument tosigaltstack()rather than the legacy struct sigaltstack. This allows us to compile on MacOSX with --with-coroutine=sigaltstack.
Quoted 8 lines
Quoted 6 lines
Signed-off-by Peter Maydell <[email protected]>---
Tested on Linux and MacOSX.coroutine-sigaltstack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)Reviewed-by Stefan Hajnoczi <[email protected]>
Thanks, applied to the block branch for 1.3.
Kevin