From: Dmitriy Vyukov Date: Thu, 7 Aug 2014 19:47:01 +0000 (+0400) Subject: runtime: fix nacl/amd64p32 build X-Git-Tag: go1.4beta1~883 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3a3f8993ced61bf103e77d229722d0ce33fd0090;p=gostls13.git runtime: fix nacl/amd64p32 build C compiler does not support unnamed fields. LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://golang.org/cl/124870043 --- diff --git a/src/pkg/runtime/defs_nacl_amd64p32.h b/src/pkg/runtime/defs_nacl_amd64p32.h index 8d3068bf87..45663d40af 100644 --- a/src/pkg/runtime/defs_nacl_amd64p32.h +++ b/src/pkg/runtime/defs_nacl_amd64p32.h @@ -79,7 +79,7 @@ struct ExcContext union { ExcRegs386 regs; ExcRegsAmd64 regs64; - }; + } regs; }; struct ExcPortableContext diff --git a/src/pkg/runtime/signal_nacl_amd64p32.h b/src/pkg/runtime/signal_nacl_amd64p32.h index c58593a291..f62305cb52 100644 --- a/src/pkg/runtime/signal_nacl_amd64p32.h +++ b/src/pkg/runtime/signal_nacl_amd64p32.h @@ -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) (((ExcContext*)(ctxt))->regs64) +#define SIG_REGS(ctxt) (((ExcContext*)(ctxt))->regs.regs64) #define SIG_RAX(info, ctxt) (SIG_REGS(ctxt).rax) #define SIG_RBX(info, ctxt) (SIG_REGS(ctxt).rbx)