From 7de4796419dc3b554e6dab3a119a62469569d299 Mon Sep 17 00:00:00 2001 From: Jason Chu Date: Fri, 7 Apr 2017 02:25:34 +1000 Subject: [PATCH] unix: add mips and mipsle to endian files golang.org/x/sys/unix currently does not compile on mips nor mipsle as it fails to set the `isBigEndian` variable. This is due to mips and mipsle being missing in the build tag of their respective endian files. This change adds mips to the build tag of `endian_big.go` and mipsle to the build tag of `endian_little.go` to fix this issue. Change-Id: I79947cedb2645e80143e65bde00f2c95261125fb Reviewed-on: https://go-review.googlesource.com/39730 Reviewed-by: Brad Fitzpatrick --- unix/endian_big.go | 2 +- unix/endian_little.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/unix/endian_big.go b/unix/endian_big.go index 8cce9f1d..5e926906 100644 --- a/unix/endian_big.go +++ b/unix/endian_big.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // -// +build ppc64 s390x mips64 +// +build ppc64 s390x mips mips64 package unix diff --git a/unix/endian_little.go b/unix/endian_little.go index 9ed865fb..085df2d8 100644 --- a/unix/endian_little.go +++ b/unix/endian_little.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // -// +build 386 amd64 amd64p32 arm arm64 ppc64le mips64le +// +build 386 amd64 amd64p32 arm arm64 ppc64le mipsle mips64le package unix