linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / tools / networking / wireguard-go / 0001-Fix-darwin-build.patch
blobd79d9e3531f3f39e93f6b8ceaf960b5bd674e5f5
1 From 63360467da4ae6d7fc8c0e05619bdf8813c7e417 Mon Sep 17 00:00:00 2001
2 From: Maximilian Bosch <maximilian@mbosch.me>
3 Date: Sun, 5 Jan 2020 15:35:15 +0100
4 Subject: [PATCH] Fix darwin build
6 ---
7 rwcancel/select_default.go | 5 +++--
8 1 file changed, 3 insertions(+), 2 deletions(-)
10 diff --git a/rwcancel/select_default.go b/rwcancel/select_default.go
11 index dd23cda..03f3452 100644
12 --- a/rwcancel/select_default.go
13 +++ b/rwcancel/select_default.go
14 @@ -9,6 +9,7 @@ package rwcancel
16 import "golang.org/x/sys/unix"
18 -func unixSelect(nfd int, r *unix.FdSet, w *unix.FdSet, e *unix.FdSet, timeout *unix.Timeval) error {
19 - return unix.Select(nfd, r, w, e, timeout)
20 +func unixSelect(nfd int, r *unix.FdSet, w *unix.FdSet, e *unix.FdSet, timeout *unix.Timeval) (err error) {
21 + _, err = unix.Select(nfd, r, w, e, timeout)
22 + return
24 --
25 2.23.1