From beb314c0dbcbe03b576123e99e1331348f858ecc Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 25 Feb 2025 11:46:15 +0100 Subject: [PATCH] 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 --- src/os/root_openat.go | 2 +- src/os/root_unix.go | 2 +- src/syscall/badlinkname_unix.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.51.0