mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Use epoll_create() instead of epoll_create1() for compatibility with
older kernels.
This commit is contained in:
parent
511d197e8c
commit
c3818ac91f
|
@ -950,7 +950,7 @@ TCP_Server *new_TCP_server(uint8_t ipv6_enabled, uint16_t num_sockets, const uin
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef TCP_SERVER_USE_EPOLL
|
#ifdef TCP_SERVER_USE_EPOLL
|
||||||
temp->efd = epoll_create1(0);
|
temp->efd = epoll_create(8);
|
||||||
|
|
||||||
if (temp->efd == -1) {
|
if (temp->efd == -1) {
|
||||||
free(temp);
|
free(temp);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user