summaryrefslogtreecommitdiffhomepage
path: root/rwcancel/poll_unix.go
diff options
context:
space:
mode:
Diffstat (limited to 'rwcancel/poll_unix.go')
-rw-r--r--rwcancel/poll_unix.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/rwcancel/poll_unix.go b/rwcancel/poll_unix.go
new file mode 100644
index 0000000..37e9686
--- /dev/null
+++ b/rwcancel/poll_unix.go
@@ -0,0 +1,15 @@
+//go:build !windows && !linux
+// +build !windows,!linux
+
+/* SPDX-License-Identifier: MIT
+ *
+ * Copyright (C) 2017-2021 WireGuard LLC. All Rights Reserved.
+ */
+
+package rwcancel
+
+import "golang.org/x/sys/unix"
+
+func poll(fds []unix.PollFd, timeout int) (n int, err error) {
+ return unix.Poll(fds, timeout)
+}