[前][次][番号順一覧][スレッド一覧]

ruby-changes:33916

From: nobu <ko1@a...>
Date: Sun, 18 May 2014 17:15:23 +0900 (JST)
Subject: [ruby-changes:33916] nobu:r45997 (trunk): signal.c: use mcontext_t

nobu	2014-05-18 17:15:16 +0900 (Sun, 18 May 2014)

  New Revision: 45997

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45997

  Log:
    signal.c: use mcontext_t
    
    * signal.c (check_stack_overflow): use mcontext_t.  the struct tag
      name is not portable.

  Modified files:
    trunk/signal.c
Index: signal.c
===================================================================
--- signal.c	(revision 45996)
+++ signal.c	(revision 45997)
@@ -710,7 +710,7 @@ NORETURN(void ruby_thread_stack_overflow https://github.com/ruby/ruby/blob/trunk/signal.c#L710
 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];

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]