summaryrefslogtreecommitdiffstats
path: root/src/internal/poll/iovec_illumos.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal/poll/iovec_illumos.go')
-rw-r--r--src/internal/poll/iovec_illumos.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/internal/poll/iovec_illumos.go b/src/internal/poll/iovec_illumos.go
new file mode 100644
index 0000000..0570674
--- /dev/null
+++ b/src/internal/poll/iovec_illumos.go
@@ -0,0 +1,16 @@
+// 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.
+
+// +build illumos
+
+package poll
+
+import (
+ "syscall"
+ "unsafe"
+)
+
+func newIovecWithBase(base *byte) syscall.Iovec {
+ return syscall.Iovec{Base: (*int8)(unsafe.Pointer(base))}
+}