diff options
Diffstat (limited to 'src/internal/poll/iovec_solaris.go')
-rw-r--r-- | src/internal/poll/iovec_solaris.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/internal/poll/iovec_solaris.go b/src/internal/poll/iovec_solaris.go new file mode 100644 index 0000000..e68f833 --- /dev/null +++ b/src/internal/poll/iovec_solaris.go @@ -0,0 +1,14 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package poll + +import ( + "syscall" + "unsafe" +) + +func newIovecWithBase(base *byte) syscall.Iovec { + return syscall.Iovec{Base: (*int8)(unsafe.Pointer(base))} +} |