diff options
author | irungentoo <irungentoo@gmail.com> | 2014-07-22 12:02:24 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-07-22 12:02:24 -0400 |
commit | c3818ac91feb59dbe27e0724c3255d4acd8ef726 (patch) | |
tree | 0b8e1e1e22a43d8f0f2ac45de83af49315d0a0cb /toxcore | |
parent | 511d197e8ce60cfdc8bb956d94483c4e6ec5725d (diff) |
Use epoll_create() instead of epoll_create1() for compatibility with
older kernels.
Diffstat (limited to 'toxcore')
-rw-r--r-- | toxcore/TCP_server.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
950 | } | 950 | } |
951 | 951 | ||
952 | #ifdef TCP_SERVER_USE_EPOLL | 952 | #ifdef TCP_SERVER_USE_EPOLL |
953 | temp->efd = epoll_create1(0); | 953 | temp->efd = epoll_create(8); |
954 | 954 | ||
955 | if (temp->efd == -1) { | 955 | if (temp->efd == -1) { |
956 | free(temp); | 956 | free(temp); |