mirror of
https://github.com/rwinkhart/sys.git
synced 2026-08-28 04:46:44 -04:00
unix: fix Ppoll for arm64
Fixes golang/go#16065. Change-Id: I97d06b7038e7c7507e765736899cfa243f45805c Reviewed-on: https://go-review.googlesource.com/24121 Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
committed by
Ian Lance Taylor
parent
5a8c7f28c1
commit
62bee03759
@@ -182,8 +182,8 @@ const (
|
||||
func Poll(fds []PollFd, timeout int) (n int, err error) {
|
||||
var ts *Timespec
|
||||
if timeout >= 0 {
|
||||
ts = new(*Timespec)
|
||||
*ts = NsecToTimespec(timeout * 1e6)
|
||||
ts = new(Timespec)
|
||||
*ts = NsecToTimespec(int64(timeout) * 1e6)
|
||||
}
|
||||
if len(fds) == 0 {
|
||||
return ppoll(nil, 0, ts, nil)
|
||||
|
||||
Reference in New Issue
Block a user