Skip to content

Commit 4ebe44d

Browse files
authored
Fix build on macos (#388)
Signed-off-by: CalvinNeo <[email protected]>
1 parent 92b2b8e commit 4ebe44d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

proxy_components/proxy_ffi/src/jemalloc_utils.rs

+9-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,15 @@ pub fn issue_mallctl_args(
6363
#[cfg(not(feature = "external-jemalloc"))]
6464
{
6565
// Happens only with `raftstore-proxy-main`
66-
return mallctl(c_ptr, oldptr, oldsize, newptr, newsize);
66+
#[cfg(not(any(
67+
target_os = "android",
68+
target_os = "dragonfly",
69+
target_os = "macos"
70+
)))]
71+
{
72+
return mallctl(c_ptr, oldptr, oldsize, newptr, newsize);
73+
}
74+
0
6775
}
6876
}
6977
}

0 commit comments

Comments
 (0)