Преглед изворни кода

seccomp: support arm64's version of epoll_wait

Lars Gierth пре 9 година
родитељ
комит
55803286b9
1 измењених фајлова са 6 додато и 1 уклоњено
  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),