diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2022-09-30 19:50:03 +0200 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2022-09-30 23:58:34 +0000 |
commit | cc90e45f1da8879163ae4ed3b1f7a5045cfc0685 (patch) | |
tree | 240499bf7b9ee536abdf271d58a7082de328d63c | |
parent | aeab76f0befcd6ab1257eae9adb27ac2cb2b7ff8 (diff) | |
download | go-cc90e45f1da8879163ae4ed3b1f7a5045cfc0685.tar.gz go-cc90e45f1da8879163ae4ed3b1f7a5045cfc0685.zip |
all: use "unix" build tag where appropriate
Convert a few occurrences that were submitted after CL 389935.
For #20322
For #51572
Change-Id: I0047361916c402f8e37f515e6b09d451bd499e6e
Reviewed-on: https://go-review.googlesource.com/c/go/+/437235
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
-rw-r--r-- | src/cmd/internal/osinfo/os_unix.go | 2 | ||||
-rw-r--r-- | src/os/rlimit.go | 2 | ||||
-rw-r--r-- | src/runtime/pprof/pprof_rusage.go | 2 | ||||
-rw-r--r-- | src/runtime/pprof/rusage_test.go | 2 | ||||
-rw-r--r-- | src/syscall/mmap_unix_test.go | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/src/cmd/internal/osinfo/os_unix.go b/src/cmd/internal/osinfo/os_unix.go index b989f0afb4..e1488323ae 100644 --- a/src/cmd/internal/osinfo/os_unix.go +++ b/src/cmd/internal/osinfo/os_unix.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. -//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris +//go:build unix package osinfo diff --git a/src/os/rlimit.go b/src/os/rlimit.go index a89414d098..e0d0ef9b62 100644 --- a/src/os/rlimit.go +++ b/src/os/rlimit.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. -//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris +//go:build unix package os diff --git a/src/runtime/pprof/pprof_rusage.go b/src/runtime/pprof/pprof_rusage.go index a3ca4c8d5d..aa429fb06a 100644 --- a/src/runtime/pprof/pprof_rusage.go +++ b/src/runtime/pprof/pprof_rusage.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. -//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris +//go:build unix package pprof diff --git a/src/runtime/pprof/rusage_test.go b/src/runtime/pprof/rusage_test.go index b82b1af768..80395109d9 100644 --- a/src/runtime/pprof/rusage_test.go +++ b/src/runtime/pprof/rusage_test.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. -//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris +//go:build unix package pprof diff --git a/src/syscall/mmap_unix_test.go b/src/syscall/mmap_unix_test.go index 5e08b20679..911dfa66ac 100644 --- a/src/syscall/mmap_unix_test.go +++ b/src/syscall/mmap_unix_test.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. -//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris +//go:build unix package syscall_test |