From 804ef381db6bef62a44ccbbb6a417728ad3bf01d Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Mon, 15 Apr 2013 10:20:24 -0700 Subject: [PATCH] runtime: fix build on openbsd/386 R=golang-dev, minux.ma, r CC=golang-dev https://golang.org/cl/8569043 --- src/pkg/runtime/signal_openbsd_386.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/runtime/signal_openbsd_386.h b/src/pkg/runtime/signal_openbsd_386.h index 0ba66ab9f17..6742db8d490 100644 --- a/src/pkg/runtime/signal_openbsd_386.h +++ b/src/pkg/runtime/signal_openbsd_386.h @@ -20,4 +20,4 @@ #define SIG_GS(info, ctxt) (SIG_REGS(ctxt).sc_gs) #define SIG_CODE0(info, ctxt) ((info)->si_code) -#define SIG_CODE1(info, ctxt) ((uintptr)(info)->si_addr) +#define SIG_CODE1(info, ctxt) (*(uintptr*)((byte*)info + 12))