summaryrefslogtreecommitdiffstats
path: root/src/poll.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/poll.c')
-rw-r--r--src/poll.c5
1 files changed, 5 insertions, 0 deletions
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 <sys/syscall.h>
+#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] = {};