mirror of
https://github.com/zrepl/zrepl.git
synced 2025-08-17 02:11:03 +02:00
rpc/dataconn + build: support GOOS={solaris,illumos}
This commit is contained in:
11
rpc/dataconn/timeoutconn/timeoutconn_readv_unsupported.go
Normal file
11
rpc/dataconn/timeoutconn/timeoutconn_readv_unsupported.go
Normal file
@ -0,0 +1,11 @@
|
||||
// +build illumos solaris
|
||||
|
||||
package timeoutconn
|
||||
|
||||
import "net"
|
||||
|
||||
func (c Conn) readv(buffers net.Buffers) (n int64, err error) {
|
||||
// Go does not expose the SYS_READV symbol for Solaris / Illumos - do they have it?
|
||||
// Anyhow, use the fallback
|
||||
return c.readvFallback(buffers)
|
||||
}
|
Reference in New Issue
Block a user