From 3bfe400d70ec6edcf5b7cd52c55b6b7bc9ab33f5 Mon Sep 17 00:00:00 2001 From: liqiang-fit2cloud Date: Thu, 27 Nov 2025 16:08:58 +0800 Subject: [PATCH] build: fix gcc error in arm64. --- installer/sandbox.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/installer/sandbox.c b/installer/sandbox.c index 570d0c7b1..c17e0381a 100644 --- a/installer/sandbox.c +++ b/installer/sandbox.c @@ -295,8 +295,12 @@ long syscall(long number, ...) { switch (number) { case SYS_execve: case SYS_execveat: +#ifdef SYS_fork case SYS_fork: +#endif +#ifdef SYS_vfork case SYS_vfork: +#endif case SYS_clone: case SYS_clone3: #ifdef SYS_posix_spawn