From 9748c5414e988e1211febcdbf9cd598ecfe41d23 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Fri, 19 Feb 2021 10:03:00 -0800 Subject: [PATCH] portlist: adjust build tags for iOS + Go 1.16 Updates #943 Updates #1370 Signed-off-by: Brad Fitzpatrick --- portlist/netstat_exec.go | 3 ++- portlist/portlist_macos.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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