From: Joel Sing Date: Mon, 15 Apr 2013 17:20:24 +0000 (-0700) Subject: runtime: fix build on openbsd/386 X-Git-Tag: go1.1rc2~99 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=804ef381db6bef62a44ccbbb6a417728ad3bf01d;p=gostls13.git runtime: fix build on openbsd/386 R=golang-dev, minux.ma, r CC=golang-dev https://golang.org/cl/8569043 --- diff --git a/src/pkg/runtime/signal_openbsd_386.h b/src/pkg/runtime/signal_openbsd_386.h index 0ba66ab9f1..6742db8d49 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))