Skip to content

Commit

Permalink
Fix compilation error on Loong64.
Browse files Browse the repository at this point in the history
Signed-off-by: liuxiang <liuxiang@loongson.cn>
  • Loading branch information
liuxiang88 committed Jan 15, 2024
1 parent 6dc54f6 commit 536e95c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/arping.c
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,11 @@ static void drop_seccomp(int libnet_fd)
//

// Write to stdout and stderr.
#if defined(__loongarch64)
if (seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(statx), 1, SCMP_A0(SCMP_CMP_EQ, STDOUT_FILENO))) {
#else
if (seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(fstat), 1, SCMP_A0(SCMP_CMP_EQ, STDOUT_FILENO))) {
#endif
perror("seccomp_rule_add(fstat stdout)");
exit(1);
}
Expand Down

0 comments on commit 536e95c

Please sign in to comment.