From 9701accccff737fe90f5631d9d700d19fb08e7ef Mon Sep 17 00:00:00 2001 From: Johannes 'fish' Ziemke Date: Thu, 14 Jul 2022 18:03:06 +0200 Subject: [PATCH] Support sysreadfile on darwin Signed-off-by: Johannes Ziemke --- internal/util/sysreadfile.go | 5 +++-- internal/util/sysreadfile_compat.go | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/internal/util/sysreadfile.go b/internal/util/sysreadfile.go index bd6ea1ebd..1ab875cee 100644 --- a/internal/util/sysreadfile.go +++ b/internal/util/sysreadfile.go @@ -11,8 +11,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -//go:build linux && !appengine -// +build linux,!appengine +//go:build (linux || darwin) && !appengine +// +build linux darwin +// +build !appengine package util diff --git a/internal/util/sysreadfile_compat.go b/internal/util/sysreadfile_compat.go index 8702ab3b0..1d86f5e63 100644 --- a/internal/util/sysreadfile_compat.go +++ b/internal/util/sysreadfile_compat.go @@ -11,8 +11,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -//go:build (linux && appengine) || !linux -// +build linux,appengine !linux +//go:build (linux && appengine) || (!linux && !darwin) +// +build linux,appengine !linux,!darwin package util