aboutsummaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndy Pan <i@andypan.me>2024-08-06 21:22:57 +0800
committerGopher Robot <gobot@golang.org>2024-08-12 18:44:38 +0000
commit9819ac51dfc0593755f334a3eedec4edf04313bf (patch)
tree11411a1c01bce73a682abb87cac5eae011bdf7df /src/net
parent0b4ab20d2cb30279c11a31cc6bd9324b14a4a38e (diff)
downloadgo-9819ac51dfc0593755f334a3eedec4edf04313bf.tar.xz
os: employ sendfile(2) for file-to-file copying on SunOS when needed
Change-Id: Ia46de6c62707db9ef193fe1a2aabb18585f1dd48 Reviewed-on: https://go-review.googlesource.com/c/go/+/603098 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: Andy Pan <panjf2000@gmail.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Damien Neil <dneil@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/net')
-rw-r--r--src/net/cgo_solaris.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/cgo_solaris.go b/src/net/cgo_solaris.go
index cde9c957fe..98a0e81956 100644
--- a/src/net/cgo_solaris.go
+++ b/src/net/cgo_solaris.go
@@ -7,7 +7,7 @@
package net
/*
-#cgo LDFLAGS: -lsocket -lnsl -lsendfile
+#cgo LDFLAGS: -lsocket -lnsl
#include <netdb.h>
*/
import "C"