diff options
| author | Dmitriy Vyukov <dvyukov@google.com> | 2014-08-07 23:47:01 +0400 |
|---|---|---|
| committer | Dmitriy Vyukov <dvyukov@google.com> | 2014-08-07 23:47:01 +0400 |
| commit | 3a3f8993ced61bf103e77d229722d0ce33fd0090 (patch) | |
| tree | f9a7023e13647bce1acad271e4ad7fc19213fdbf /src/pkg/runtime | |
| parent | a3c0ca54b01284af40e684422a739d41b4cb9cfe (diff) | |
| download | go-3a3f8993ced61bf103e77d229722d0ce33fd0090.tar.xz | |
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
Diffstat (limited to 'src/pkg/runtime')
| -rw-r--r-- | src/pkg/runtime/defs_nacl_amd64p32.h | 2 | ||||
| -rw-r--r-- | 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) |
