Dont use the syscall package

This commit is contained in:
Kovid Goyal
2022-08-25 05:46:51 +05:30
parent e68b5fa504
commit 9be2247081
5 changed files with 25 additions and 39 deletions

View File

@@ -14,6 +14,6 @@ func Select(nfd int, r *unix.FdSet, w *unix.FdSet, e *unix.FdSet, timeout time.D
if timeout < 0 {
return unix.Select(nfd, r, w, e, nil)
}
ts := NsecToTimeval(timeout)
ts := unix.NsecToTimeval(int64(timeout))
return unix.Select(nfd, r, w, e, &ts)
}