commit: 1b2e1833b76798d91f741e85346c0cc43fe30c23
parent 50f68022055c4ef651fc8bce05b0783bc1014495
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Thu, 16 Oct 2025 01:41:18 +0200
syscalls.sh: surround cases with #ifdef
Allows mstrace to work on architectures with different syscalls like arm64
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/syscalls.sh b/syscalls.sh
@@ -52,7 +52,9 @@ do
fmt="${fmt}"' ")"'
+ printf '#ifdef SYS_%s\n' "$syscall"
printf ' case SYS_%s:\n' "$syscall"
printf ' fprintf(out, %s, %s);\n' "$fmt" "$fmt_args"
printf ' return;\n'
+ printf '#endif\n'
done >syscalls_cases.h