build: fix gcc error in arm64.

This commit is contained in:
liqiang-fit2cloud 2025-11-27 16:08:58 +08:00
parent 916a8fe67c
commit 3bfe400d70

View File

@ -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