From 1ad382220048339cb1aeecef7d69b9ddffd9168c Mon Sep 17 00:00:00 2001 From: Jamie Liu Date: Tue, 20 Jul 2021 16:24:59 -0700 Subject: Add go:build directives as required by Go 1.17's gofmt. PiperOrigin-RevId: 385894869 --- pkg/memutil/memfd_linux_unsafe.go | 1 + pkg/memutil/mmap.go | 3 +++ 2 files changed, 4 insertions(+) (limited to 'pkg/memutil') diff --git a/pkg/memutil/memfd_linux_unsafe.go b/pkg/memutil/memfd_linux_unsafe.go index 504382213..2179c92f3 100644 --- a/pkg/memutil/memfd_linux_unsafe.go +++ b/pkg/memutil/memfd_linux_unsafe.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build linux // +build linux package memutil diff --git a/pkg/memutil/mmap.go b/pkg/memutil/mmap.go index 7c939293f..7a55d1b28 100644 --- a/pkg/memutil/mmap.go +++ b/pkg/memutil/mmap.go @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build go1.1 +// +build go1.1 + package memutil import ( -- cgit v1.2.3