diff --git a/tests/sys_epoll/epoll.c b/tests/sys_epoll/epoll.c index 29220ba18c..fa367e07cf 100644 --- a/tests/sys_epoll/epoll.c +++ b/tests/sys_epoll/epoll.c @@ -33,7 +33,12 @@ int reader(int fd) { return 1; } +#ifndef __GLIBC__ + int nfds_n1 = epoll_wait(epollfd, events, -1, -1); +#else + // glibc does not support events len -1 int nfds_n1 = epoll_wait(epollfd, events, 8, -1); +#endif if (nfds_n1 != -1 || errno != EINVAL) { perror("epoll_wait"); return 1;