From 3a3f8993ced61bf103e77d229722d0ce33fd0090 Mon Sep 17 00:00:00 2001 From: Dmitriy Vyukov Date: Thu, 7 Aug 2014 23:47:01 +0400 Subject: [PATCH] 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 --- src/pkg/runtime/defs_nacl_amd64p32.h | 2 +- src/pkg/runtime/signal_nacl_amd64p32.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) -- 2.48.1