Commit 15937ccb authored by Ian Lance Taylor's avatar Ian Lance Taylor

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: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent a016ecfd
......@@ -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 (
......
......@@ -5,6 +5,7 @@
// +build !mips64
// +build !mips64le
// +build !s390x
// +build !ppc64
// +build linux
package runtime
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment