aboutsummaryrefslogtreecommitdiff
path: root/src/net/sendfile.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/sendfile.go')
-rw-r--r--src/net/sendfile.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net/sendfile.go b/src/net/sendfile.go
index 0e0fcc40ff..572c368ae2 100644
--- a/src/net/sendfile.go
+++ b/src/net/sendfile.go
@@ -12,6 +12,8 @@ import (
"syscall"
)
+var testHookSupportsSendfile func() bool
+
// sendFile copies the contents of r to c using the sendfile
// system call to minimize copies.
//