gperftools/0001-Resolving-loongarch64-build-error.patch
2023-07-12 14:35:05 +08:00

27 lines
762 B
Diff

From c0a42b47a90003b6d23c8251ec5b27ea849cc279 Mon Sep 17 00:00:00 2001
From: doupengda <doupengda@loongson.cn>
Date: Wed, 12 Jul 2023 06:29:11 +0000
Subject: [PATCH] Resolving loongarch64 build error
---
src/base/linux_syscall_support.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/base/linux_syscall_support.h b/src/base/linux_syscall_support.h
index b807b11..8400732 100644
--- a/src/base/linux_syscall_support.h
+++ b/src/base/linux_syscall_support.h
@@ -993,6 +993,9 @@ struct kernel_stat {
#ifndef __NR_fstatat
#define __NR_fstatat 79
#endif
+#ifndef __NR_fstat
+#define __NR_fstat 80
+#endif
#ifndef __NR_getdents64
#define __NR_getdents64 61
#endif /* End of loongarch64 defininitions */
--
2.33.0