mirror of
https://github.com/genodelabs/genode.git
synced 2025-03-23 04:25:21 +00:00
parent
1ec823bf5e
commit
9578fadae2
@ -124,7 +124,9 @@ int ppoll(struct pollfd fds[], nfds_t nfds,
|
||||
const struct timespec *timeout,
|
||||
const sigset_t*)
|
||||
{
|
||||
int timeout_ms = timeout->tv_sec * 1000 + timeout->tv_nsec / 1000;
|
||||
int timeout_ms = timeout ?
|
||||
(timeout->tv_sec * 1000 + timeout->tv_nsec / 1000) :
|
||||
-1;
|
||||
return poll(fds, nfds, timeout_ms);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user