aboutsummaryrefslogtreecommitdiff
path: root/src/net/sendfile_linux.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/sendfile_linux.go')
-rw-r--r--src/net/sendfile_linux.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net/sendfile_linux.go b/src/net/sendfile_linux.go
index 9a7d005803..f8a7bec8d3 100644
--- a/src/net/sendfile_linux.go
+++ b/src/net/sendfile_linux.go
@@ -10,6 +10,8 @@ import (
"os"
)
+const supportsSendfile = true
+
// sendFile copies the contents of r to c using the sendfile
// system call to minimize copies.
//