diff --git a/mlock/mlock_unavail.go b/mlock/mlock_unavail.go index 29c927e..b2b9e01 100644 --- a/mlock/mlock_unavail.go +++ b/mlock/mlock_unavail.go @@ -1,8 +1,8 @@ // Copyright IBM Corp. 2020, 2025 // SPDX-License-Identifier: MPL-2.0 -//go:build darwin || nacl || netbsd || plan9 || windows || js -// +build darwin nacl netbsd plan9 windows js +//go:build !aix && !dragonfly && !freebsd && !linux && !openbsd && !solaris +// +build !aix,!dragonfly,!freebsd,!linux,!openbsd,!solaris package mlock diff --git a/mlock/mlock_unix.go b/mlock/mlock_unix.go index e0f6ca0..4e50e1a 100644 --- a/mlock/mlock_unix.go +++ b/mlock/mlock_unix.go @@ -1,7 +1,8 @@ // Copyright IBM Corp. 2020, 2025 // SPDX-License-Identifier: MPL-2.0 -// +build dragonfly freebsd linux openbsd solaris +//go:build aix || dragonfly || freebsd || linux || openbsd || solaris +// +build aix dragonfly freebsd linux openbsd solaris package mlock