summaryrefslogtreecommitdiff
path: root/toxcore/TCP_server.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/TCP_server.c')
-rw-r--r--toxcore/TCP_server.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/toxcore/TCP_server.c b/toxcore/TCP_server.c
index b900db6b..5652513e 100644
--- a/toxcore/TCP_server.c
+++ b/toxcore/TCP_server.c
@@ -818,9 +818,10 @@ static sock_t new_listening_TCP_socket(int family, uint16_t port)
818 return ~0; 818 return ~0;
819 } 819 }
820 820
821 int ok = 1;
822#ifndef TCP_SERVER_USE_EPOLL 821#ifndef TCP_SERVER_USE_EPOLL
823 ok = set_socket_nonblock(sock); 822 int ok = set_socket_nonblock(sock);
823#else
824 int ok = 1;
824#endif 825#endif
825 826
826 if (ok && family == AF_INET6) { 827 if (ok && family == AF_INET6) {