From: Markos Chandras <[email protected]>
Signed-off-by: Markos Chandras <[email protected]>
---
libc/sysdeps/linux/common/epoll.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/libc/sysdeps/linux/common/epoll.c
b/libc/sysdeps/linux/common/epoll.c
index 36cda92..ba907fa 100644
--- a/libc/sysdeps/linux/common/epoll.c
+++ b/libc/sysdeps/linux/common/epoll.c
@@ -87,5 +87,15 @@ int __libc_epoll_pwait(int epfd, struct epoll_event *events,
int maxevents,
}
# endif
}
+/*
+ * If epoll_wait is not defined, then call epoll_pwait instead using NULL
+ * for sigmask argument
+ */
+#if ! defined(__NR_epoll_wait)
+int epoll_wait(int epfd, struct epoll_event *events, int maxevents, int
timeout)
+{
+ return INLINE_SYSCALL(epoll_pwait, 5, epfd, events, maxevents, timeout,
NULL);
+}
+#endif
weak_alias(__libc_epoll_pwait, epoll_pwait)
#endif
--
1.7.1
_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc