mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 10:25:37 +00:00
app/internal/window: replace ppoll with poll
We're about to add FreeBSD where ppoll is not supported. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -783,8 +783,8 @@ loop:
|
||||
}
|
||||
// Clear poll events.
|
||||
dispFd.Revents = 0
|
||||
if _, err := syscall.Ppoll(pollfds, nil, nil); err != nil && err != syscall.EINTR {
|
||||
panic(fmt.Errorf("ppoll failed: %v", err))
|
||||
if _, err := syscall.Poll(pollfds, -1); err != nil && err != syscall.EINTR {
|
||||
panic(fmt.Errorf("poll failed: %v", err))
|
||||
}
|
||||
redraw := false
|
||||
// Clear notifications.
|
||||
|
||||
Reference in New Issue
Block a user