Skip to content

Commit 4e964f2

Browse files
committed
Calling mincore on macos failed to fix
1 parent 625dbcd commit 4e964f2

File tree

1 file changed

+1
-0
lines changed
  • rocketmq-store/src/utils

1 file changed

+1
-0
lines changed

rocketmq-store/src/utils/ffi.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ pub fn mincore(addr: *const u8, len: usize, vec: *const u8) -> i32 {
100100

101101
#[cfg(target_os = "macos")]
102102
{
103+
// macos does not have mincore, so we just return 0
103104
0
104105
}
105106
#[cfg(target_os = "windows")]

0 commit comments

Comments
 (0)