summaryrefslogtreecommitdiff
path: root/toxcore/TCP_server.c
diff options
context:
space:
mode:
authorZoff <zoff99@users.noreply.github.com>2017-01-23 13:33:21 +0100
committeriphydf <iphydf@users.noreply.github.com>2017-01-24 11:47:16 +0000
commit287a29b8269eabfb33f07b9e0388a68be7ad2ba0 (patch)
tree352e20aee25b85754f12247b3b1c5f9972a7db96 /toxcore/TCP_server.c
parentce0bf232d1b2c01df056df9a030e10ba5252832f (diff)
Add Android build to CI.
Fixes #340 Fixes #457
Diffstat (limited to 'toxcore/TCP_server.c')
-rw-r--r--toxcore/TCP_server.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/toxcore/TCP_server.c b/toxcore/TCP_server.c
index 5ea198a6..7a7a4fa7 100644
--- a/toxcore/TCP_server.c
+++ b/toxcore/TCP_server.c
@@ -69,6 +69,12 @@ size_t tcp_server_listen_count(const TCP_Server *tcp_server)
69 return tcp_server->num_listening_socks; 69 return tcp_server->num_listening_socks;
70} 70}
71 71
72/* this is needed to compile on Android below API 21
73*/
74#ifndef EPOLLRDHUP
75#define EPOLLRDHUP 0x2000
76#endif
77
72/* return 1 on success 78/* return 1 on success
73 * return 0 on failure 79 * return 0 on failure
74 */ 80 */