1
0
mirror of https://github.com/golang/go synced 2024-09-25 15:20:13 -06:00

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
This commit is contained in:
Dmitriy Vyukov 2014-08-07 23:47:01 +04:00
parent a3c0ca54b0
commit 3a3f8993ce
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ struct ExcContext
union {
ExcRegs386 regs;
ExcRegsAmd64 regs64;
};
} regs;
};
struct ExcPortableContext

View File

@ -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)