Browse Source

Do not use direct epoll_wait on android because of SECCOMP limitation

Caleb James DeLisle 1 year ago
parent
commit
1b00bb1f46
1 changed files with 3 additions and 0 deletions
  1. 3 0
      node_build/dependencies/libuv/src/unix/linux-core.c

+ 3 - 0
node_build/dependencies/libuv/src/unix/linux-core.c

@@ -139,6 +139,9 @@ void uv__io_poll(uv_loop_t* loop, int timeout) {
   int op;
   int i;
   static int no_epoll_wait;
+  #ifdef Cjdns_android
+    no_epoll_wait = 1;
+  #endif
 
   if (loop->nfds == 0) {
     assert(QUEUE_EMPTY(&loop->watcher_queue));