mirror of
https://github.com/golang/go
synced 2024-11-23 09:00:04 -07: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:
parent
a3c0ca54b0
commit
3a3f8993ce
@ -79,7 +79,7 @@ struct ExcContext
|
||||
union {
|
||||
ExcRegs386 regs;
|
||||
ExcRegsAmd64 regs64;
|
||||
};
|
||||
} regs;
|
||||
};
|
||||
|
||||
struct ExcPortableContext
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user