]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix nacl/amd64p32 build
authorDmitriy Vyukov <dvyukov@google.com>
Thu, 7 Aug 2014 19:47:01 +0000 (23:47 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Thu, 7 Aug 2014 19:47:01 +0000 (23:47 +0400)
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
src/pkg/runtime/signal_nacl_amd64p32.h

index 8d3068bf877a4f1f81d3d0b8512896624f3c288e..45663d40afc4833e10395f8f9b94d171596dd3fb 100644 (file)
@@ -79,7 +79,7 @@ struct ExcContext
        union {
                ExcRegs386      regs;
                ExcRegsAmd64    regs64;
-       };
+       } regs;
 };
 
 struct ExcPortableContext
index c58593a2918ad5571ff2c54484929891df894923..f62305cb52883c68a8a3ce3b8d21b4bdcd52c9bf 100644 (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)