From c3818ac91feb59dbe27e0724c3255d4acd8ef726 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Tue, 22 Jul 2014 12:02:24 -0400 Subject: [PATCH] Use epoll_create() instead of epoll_create1() for compatibility with older kernels. --- toxcore/TCP_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toxcore/TCP_server.c b/toxcore/TCP_server.c index 47e2ff27..48173849 100644 --- a/toxcore/TCP_server.c +++ b/toxcore/TCP_server.c @@ -950,7 +950,7 @@ TCP_Server *new_TCP_server(uint8_t ipv6_enabled, uint16_t num_sockets, const uin } #ifdef TCP_SERVER_USE_EPOLL - temp->efd = epoll_create1(0); + temp->efd = epoll_create(8); if (temp->efd == -1) { free(temp);