aboutsummaryrefslogtreecommitdiff
path: root/src/internal/poll/iovec_unix.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal/poll/iovec_unix.go')
-rw-r--r--src/internal/poll/iovec_unix.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/internal/poll/iovec_unix.go b/src/internal/poll/iovec_unix.go
new file mode 100644
index 0000000000..6f98947866
--- /dev/null
+++ b/src/internal/poll/iovec_unix.go
@@ -0,0 +1,13 @@
+// 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 darwin dragonfly freebsd linux netbsd openbsd
+
+package poll
+
+import "syscall"
+
+func newIovecWithBase(base *byte) syscall.Iovec {
+ return syscall.Iovec{Base: base}
+}