diff --git a/portlist/netstat_exec.go b/portlist/netstat_exec.go index dd78215ec..fb9d0e1ab 100644 --- a/portlist/netstat_exec.go +++ b/portlist/netstat_exec.go @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build windows freebsd openbsd darwin,amd64 go1.16,darwin,arm64 +// +build windows freebsd openbsd darwin,go1.16 darwin,!go1.16,!arm64 +// +build !ios package portlist diff --git a/portlist/portlist_macos.go b/portlist/portlist_macos.go index 86dd3058e..2d0010401 100644 --- a/portlist/portlist_macos.go +++ b/portlist/portlist_macos.go @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build darwin,amd64 go1.16,darwin,arm64 +// +build darwin,amd64,!go1.16 darwin,go1.16 +// +build !ios package portlist