1
0
mirror of https://github.com/golang/go synced 2024-11-17 22:54:48 -07:00

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 <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Alexander Rakoczy <alex@golang.org>
This commit is contained in:
Koichi Shiraishi 2021-10-12 00:33:43 +09:00 committed by Alexander Rakoczy
parent 3986e5c8e7
commit aded1679ef
3 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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