diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-18 08:15:16 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-18 08:15:16 +0000 |
commit | a59ba5073ec54e4675d853084a4c54a1e10fbac9 (patch) | |
tree | e0b96b5e3d610c0b11e7ba9958e9934e008112fb /signal.c | |
parent | 778fd514821c0e19e1695eda5688b2898d268382 (diff) | |
download | ruby-a59ba5073ec54e4675d853084a4c54a1e10fbac9.tar.gz |
signal.c: use mcontext_t
* signal.c (check_stack_overflow): use mcontext_t. the struct tag
name is not portable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'signal.c')
-rw-r--r-- | signal.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -710,7 +710,7 @@ NORETURN(void ruby_thread_stack_overflow(rb_thread_t *th)); static void check_stack_overflow(const uintptr_t addr, const ucontext_t *ctx) { - const struct mcontext *mctx = ctx->uc_mcontext; + const mcontext_t *mctx = &ctx->uc_mcontext; # if defined __linux__ # if defined REG_RSP const greg_t sp = mctx->gregs[REG_RSP]; |