Explorar el Código

seccomp: support arm64's version of epoll_wait

Lars Gierth hace 9 años
padre
commit
55803286b9
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. 6 1
      util/Seccomp.c

+ 6 - 1
util/Seccomp.c

@@ -206,7 +206,12 @@ static struct sock_fprog* mkFilter(struct Allocator* alloc, struct Except* eh)
 
         // libuv
         IFEQ(__NR_epoll_ctl, success),
-        IFEQ(__NR_epoll_wait, success),
+        #ifdef __NR_epoll_wait
+            IFEQ(__NR_epoll_wait, success),
+        #endif
+        #ifdef __NR_epoll_pwait
+            IFEQ(__NR_epoll_pwait, success),
+        #endif
 
         // TUN (and logging)
         IFEQ(__NR_write, success),