]> Cypherpunks repositories - gostls13.git/commitdiff
all: use "unix" build tag where appropriate
authorTobias Klauser <tklauser@distanz.ch>
Mon, 18 Mar 2024 20:22:27 +0000 (21:22 +0100)
committerGopher Robot <gobot@golang.org>
Tue, 19 Mar 2024 11:20:31 +0000 (11:20 +0000)
For #51572

Change-Id: I23bb25b8cf1ecb9be25eb6ab9e89cd397b58b3c8
Reviewed-on: https://go-review.googlesource.com/c/go/+/572535
Reviewed-by: David Chase <drchase@google.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/cmd/compile/internal/base/mapfile_mmap.go
src/cmd/compile/internal/base/mapfile_read.go
src/cmd/internal/bio/buf_mmap.go
src/cmd/internal/bio/buf_nommap.go
src/cmd/link/internal/ld/outbuf_mmap.go
src/cmd/link/internal/ld/outbuf_nommap.go
src/runtime/pprof/pprof_norusage.go

index b66c9eb260ffe5fe41419bfd213a445d0a1258ae..aeead9d4ec2a27466934c9de2693640195b0227d 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.
 
-//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
+//go:build unix
 
 package base
 
index 783f8c460281008b3f33366de2a00b23a7fdf824..6ad2f84fb20c0ae8127282e296ae59dbed447115 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.
 
-//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris
+//go:build !unix
 
 package base
 
index 65b245cc55a825f941731944aecb6596678b4f22..9ce2b4d32818fe1be0ee4ca87ee8f644ca01feed 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.
 
-//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
+//go:build unix
 
 package bio
 
index 674144e781b2f39f9a3c7dd3e04754248bbdb83c..1d78a0166e5153c96fcdbc52bafac31860cc846d 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.
 
-//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris
+//go:build !unix
 
 package bio
 
index 2972d8a3fa1712ff5769c248f9ceef1178f0cda0..b8b8dc5158e918491b490f49116550cda4fc9cfb 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.
 
-//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
+//go:build unix
 
 package ld
 
index 6a40b97c6516d112835ac2f59ca2e812614b34d7..ee63ca18fb21d0c8797b2b99fa6266cff3dbcc55 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.
 
-//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !windows
+//go:build !unix && !windows
 
 package ld
 
index 8de38086c716ce8fe3b69bae18eff348dd414a2a..ef3cef42bddaee2e410a8399486af4bc1d03fd59 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.
 
-//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !windows
+//go:build !unix && !windows
 
 package pprof