mirror of
https://git.zx2c4.com/wireguard-go
synced 2025-10-26 18:00:30 +08:00
Add rwcancelation to darwin
This commit is contained in:
12
rwcancel/select_darwin.go
Normal file
12
rwcancel/select_darwin.go
Normal file
@@ -0,0 +1,12 @@
|
||||
/* 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) error {
|
||||
return unix.Select(nfd, r, w, e, timeout)
|
||||
}
|
||||
Reference in New Issue
Block a user