runtime: fix sigset type for ppc64 big-endian GNU/Linux

On 64-bit big-endian GNU/Linux machines we need to treat sigset as a
single uint64, not as a pair of uint32 values. This fix was already made
for s390x, but not for ppc64 (which is big-endian--the little endian
version is known as ppc64le). So copy os_linux_390.x to
os_linux_be64.go, and use build constraints as needed.

Fixes #17361

Change-Id: Ia0eb18221a8f5056bf17675fcfeb010407a13fb0
Reviewed-on: https://go-review.googlesource.com/30602
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Ian Lance Taylor 2016-10-06 15:14:58 -07:00
parent a016ecfdcb
commit 15937ccb89
2 changed files with 5 additions and 0 deletions

View file

@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// The standard GNU/Linux sigset type on big-endian 64-bit machines.
// +build ppc64 s390x
package runtime
const (

View file

@ -5,6 +5,7 @@
// +build !mips64
// +build !mips64le
// +build !s390x
// +build !ppc64
// +build linux
package runtime