Skip to content

Commit

Permalink
Fix compilation on macos; closes #8
Browse files Browse the repository at this point in the history
  • Loading branch information
tomerfiliba committed Dec 10, 2024
1 parent d8b7a29 commit 53c8d30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ impl MmapFile {
}

// optimization, we don't care about the return code
#[cfg(target_family = "unix")]
#[cfg(all(unix, not(target_os = "macos")))]
unsafe {
libc::posix_fallocate(file.as_raw_fd(), 0, HEADER_SIZE as i64)
};
Expand Down

0 comments on commit 53c8d30

Please sign in to comment.