rpc/dataconn + build: support GOOS={solaris,illumos}

This commit is contained in:
Christian Schwarz
2019-10-20 20:05:46 +02:00
parent 080f2c0616
commit 4994b7a9ea
6 changed files with 156 additions and 145 deletions

View 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)
}