src/internal/poll/sendfile_solaris.go
raw| 1 | // Copyright 2015 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | package poll |
| 6 | |
| 7 | //go:cgo_ldflag "-lsendfile" |
| 8 | |
| 9 | // Not strictly needed, but very helpful for debugging, see issue #10221. |
| 10 | // |
| 11 | //go:cgo_import_dynamic _ _ "libsendfile.so" |
| 12 | //go:cgo_import_dynamic _ _ "libsocket.so" |