From b3dc95b4bef3bbc106b8812daebe4b980e8908cf Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 9 Jan 2015 11:59:40 +0100 Subject: poll: define SYS_epoll_pwait if it isn't available --- src/poll.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/poll.c') diff --git a/src/poll.c b/src/poll.c index 085c05c..9e72f09 100644 --- a/src/poll.c +++ b/src/poll.c @@ -73,6 +73,11 @@ static inline int handshake_timeout(void) { #include +#ifndef SYS_epoll_pwait +#define SYS_epoll_pwait __NR_epoll_pwait +#endif + + /** Simplified epoll_pwait wrapper (as there are systems without or with broken epoll_pwait) */ static inline int epoll_wait_unblocked(int epfd, struct epoll_event *events, int maxevents, int timeout) { const uint8_t buf[_NSIG/8] = {}; -- cgit v1.2.3