mirror of
https://github.com/typesense/typesense.git
synced 2025-05-18 04:32:38 +08:00
Patch brpc for ARM mac.
This commit is contained in:
parent
27d2f7880f
commit
d3f9f64ef2
@ -1,4 +1,20 @@
|
||||
|
||||
--- src/bvar/default_variables.cpp
|
||||
+++ src/bvar/default_variables.cpp
|
||||
@@ -447,7 +447,13 @@
|
||||
// in MacOS.
|
||||
memset(s, 0, sizeof(ProcIO));
|
||||
static pid_t pid = getpid();
|
||||
- rusage_info_current rusage;
|
||||
+
|
||||
+ #ifdef __arm__
|
||||
+ rusage_info_v4 rusage;
|
||||
+ #else
|
||||
+ rusage_info_current rusage;
|
||||
+ #endif
|
||||
+
|
||||
if (proc_pid_rusage(pid, RUSAGE_INFO_CURRENT, (void**)&rusage) != 0) {
|
||||
PLOG(WARNING) << "Fail to proc_pid_rusage";
|
||||
return false;
|
||||
|
||||
--- BUILD.bazel
|
||||
+++ BUILD.bazel
|
||||
|
Loading…
x
Reference in New Issue
Block a user