From aded1679ef6a33ef6fe6c0b466ecf59186706d23 Mon Sep 17 00:00:00 2001 From: Koichi Shiraishi Date: Tue, 12 Oct 2021 00:33:43 +0900 Subject: [PATCH] internal/poll,net: support poll.Sendfile for darwin darwin already supports syscall.Sendfile. Change-Id: Id3db06591ffad0550b4173bacddeb0acfe355f9e Reviewed-on: https://go-review.googlesource.com/c/go/+/355109 Reviewed-by: Ian Lance Taylor Run-TryBot: Ian Lance Taylor TryBot-Result: Go Bot Trust: Alexander Rakoczy --- src/internal/poll/sendfile_bsd.go | 4 ++-- src/net/sendfile_stub.go | 4 ++-- src/net/sendfile_unix_alt.go | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/internal/poll/sendfile_bsd.go b/src/internal/poll/sendfile_bsd.go index 3ba30a2154..5531e533c5 100644 --- a/src/internal/poll/sendfile_bsd.go +++ b/src/internal/poll/sendfile_bsd.go @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build dragonfly || freebsd -// +build dragonfly freebsd +//go:build darwin || dragonfly || freebsd +// +build darwin dragonfly freebsd package poll diff --git a/src/net/sendfile_stub.go b/src/net/sendfile_stub.go index 5753bc0289..c079064262 100644 --- a/src/net/sendfile_stub.go +++ b/src/net/sendfile_stub.go @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build aix || darwin || (js && wasm) || netbsd || openbsd -// +build aix darwin js,wasm netbsd openbsd +//go:build aix || (js && wasm) || netbsd || openbsd +// +build aix js,wasm netbsd openbsd package net diff --git a/src/net/sendfile_unix_alt.go b/src/net/sendfile_unix_alt.go index 54667d672f..cd63dcc32c 100644 --- a/src/net/sendfile_unix_alt.go +++ b/src/net/sendfile_unix_alt.go @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build dragonfly || freebsd || solaris -// +build dragonfly freebsd solaris +//go:build darwin || dragonfly || freebsd || solaris +// +build darwin dragonfly freebsd solaris package net