mirror of
https://git.zx2c4.com/wireguard-go
synced 2025-10-18 22:44:43 +08:00
Add rwcancelation to darwin
This commit is contained in:
13
rwcancel/select_linux.go
Normal file
13
rwcancel/select_linux.go
Normal file
@@ -0,0 +1,13 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0
|
||||
*
|
||||
* Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
|
||||
*/
|
||||
|
||||
package rwcancel
|
||||
|
||||
import "golang.org/x/sys/unix"
|
||||
|
||||
func unixSelect(nfd int, r *unix.FdSet, w *unix.FdSet, e *unix.FdSet, timeout *unix.Timeval) (err error) {
|
||||
_, err = unix.Select(nfd, r, w, e, timeout)
|
||||
return
|
||||
}
|
Reference in New Issue
Block a user