From: Tobias Klauser Date: Tue, 25 Feb 2025 10:46:15 +0000 (+0100) Subject: os, syscall: use unix build tag where appropriate X-Git-Tag: go1.25rc1~907 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=beb314c0dbcbe03b576123e99e1331348f858ecc;p=gostls13.git os, syscall: use unix build tag where appropriate These newly added files may use the unix build tag instead of explitly listing all unix-like GOOS values. For #51572 Change-Id: I31c71d2b5533b39bbccd89bf616a99b8e33565d3 Reviewed-on: https://go-review.googlesource.com/c/go/+/651996 Auto-Submit: Tobias Klauser Reviewed-by: Ian Lance Taylor LUCI-TryBot-Result: Go LUCI Reviewed-by: Michael Pratt --- diff --git a/src/os/root_openat.go b/src/os/root_openat.go index cac0b1df0f..e25cba64af 100644 --- a/src/os/root_openat.go +++ b/src/os/root_openat.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 || windows || wasip1 +//go:build unix || windows || wasip1 package os diff --git a/src/os/root_unix.go b/src/os/root_unix.go index 76d6b74eb7..f2f8e52bb2 100644 --- a/src/os/root_unix.go +++ b/src/os/root_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 || wasip1 +//go:build unix || wasip1 package os diff --git a/src/syscall/badlinkname_unix.go b/src/syscall/badlinkname_unix.go index 4964a830b0..70ba073b37 100644 --- a/src/syscall/badlinkname_unix.go +++ b/src/syscall/badlinkname_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 syscall