aboutsummaryrefslogtreecommitdiff
path: root/src/net/sendfile_stub.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/sendfile_stub.go')
-rw-r--r--src/net/sendfile_stub.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/sendfile_stub.go b/src/net/sendfile_stub.go
index a4fdd99ffe..7f31cc63e1 100644
--- a/src/net/sendfile_stub.go
+++ b/src/net/sendfile_stub.go
@@ -2,12 +2,14 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//go:build aix || js || netbsd || openbsd || ios || wasip1
+//go:build !(linux || (darwin && !ios) || dragonfly || freebsd || solaris || windows)
package net
import "io"
+const supportsSendfile = false
+
func sendFile(c *netFD, r io.Reader) (n int64, err error, handled bool) {
return 0, nil, false
}