diff --git a/unix_user_cgo.go b/unix_user_cgo.go index d9eb227..9691d8b 100644 --- a/unix_user_cgo.go +++ b/unix_user_cgo.go @@ -3,8 +3,10 @@ // license that can be found in the LICENSE.BSD file. // SPDX-License-Identifier: BSD-3-Clause -// +build aix darwin dragonfly freebsd js,wasm !android,linux netbsd openbsd solaris +//go:build (aix || darwin || dragonfly || freebsd || (!android && linux) || netbsd || openbsd || solaris) && cgo && !osusergo +// +build aix darwin dragonfly freebsd !android,linux netbsd openbsd solaris // +build cgo +// +build !osusergo package main diff --git a/unix_user_go.go b/unix_user_go.go index 626e5cb..81cad9b 100644 --- a/unix_user_go.go +++ b/unix_user_go.go @@ -3,8 +3,9 @@ // license that can be found in the LICENSE.BSD file. // SPDX-License-Identifier: BSD-3-Clause +//go:build (aix || darwin || dragonfly || freebsd || (js && wasm) || (!android && linux) || netbsd || openbsd || solaris) && (!cgo || osusergo) // +build aix darwin dragonfly freebsd js,wasm !android,linux netbsd openbsd solaris -// +build !cgo +// +build !cgo osusergo package main