]> Cypherpunks repositories - gostls13.git/commitdiff
net: link with networking libraries when net package is in use
authorAram Hăvărneanu <aram@mgk.ro>
Mon, 23 Mar 2015 12:52:46 +0000 (13:52 +0100)
committerAram Hăvărneanu <aram@mgk.ro>
Wed, 6 May 2015 12:26:52 +0000 (12:26 +0000)
Fixes #10221.

Change-Id: Ib23805494d8af1946360bfea767f9727e2504dc5
Reviewed-on: https://go-review.googlesource.com/7941
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Minux Ma <minux@golang.org>
src/net/sendfile_solaris.go

index 78b8b832203ba3b61faa769ecb2462adabe1cc76..c7e3df1ddb0da24aa06355e8d2aae11a6dfd7f66 100644 (file)
@@ -10,6 +10,10 @@ import (
        "syscall"
 )
 
+// Not strictly needed, but very helpful for debugging, see issue #10221.
+//go:cgo_import_dynamic _ _ "libsendfile.so"
+//go:cgo_import_dynamic _ _ "libsocket.so"
+
 // maxSendfileSize is the largest chunk size we ask the kernel to copy
 // at a time.
 const maxSendfileSize int = 4 << 20