]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix build for freebsd/arm after reorg
authorRuss Cox <rsc@golang.org>
Thu, 14 Mar 2013 21:50:07 +0000 (17:50 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 14 Mar 2013 21:50:07 +0000 (17:50 -0400)
R=golang-dev
CC=golang-dev
https://golang.org/cl/7701046

src/pkg/runtime/signal_freebsd_arm.h

index 231d4b753f7fe24a988fe130537fcd87bcb2da95..87a45aa27eaf20c5aa13470e00e4b8d2aa4eb8e5 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-#define SIG_REGS(ctxt) (((Sigcontext*)&((Ucontext*)(ctxt))->uc_mcontext))
+#define SIG_REGS(ctxt) (((Ucontext*)(ctxt))->uc_mcontext)
 
 #define SIG_R0(info, ctxt) (SIG_REGS(ctxt).__gregs[0])
 #define SIG_R1(info, ctxt) (SIG_REGS(ctxt).__gregs[1])
@@ -25,3 +25,4 @@
 #define SIG_TRAP(info, ctxt) (0)
 #define SIG_ERROR(info, ctxt) (0)
 #define SIG_OLDMASK(info, ctxt) (0)
+#define SIG_CODE0(info, ctxt) ((uintptr)(info)->si_code)