Skip to contentSkip to conversation

coroutine-sigaltstack.c: Use stack_t, not struct sigaltstack

PATCH Applied Peter Maydell 3 participants 3 messages Nov 10, 2012 – Nov 27, 2012

lore
Share & tools
lore
#0 lore raw

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
index 861e878..39dbaa5 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Peter Maydell

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(-)
Applied
#2 lore raw

Am 12.11.2012 13:57, schrieb Stefan Hajnoczi:

Quoted 6 lines
Quoted 4 lines · Peter Maydell

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.

Quoted 8 lines
Quoted 6 lines

---
Tested on Linux and MacOSX.

 coroutine-sigaltstack.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Thanks, applied to the block branch for 1.3.

Kevin