Skip to content

Commit

Permalink
Only enable mremap wrapper on Linux, since it's Linux-specific
Browse files Browse the repository at this point in the history
  • Loading branch information
sporksmith committed Oct 5, 2020
1 parent 09a291b commit 7a46b52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sys/mman.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ pub unsafe fn mmap(addr: *mut c_void, length: size_t, prot: ProtFlags, flags: Ma
/// # Safety
///
/// See the `mremap(2)` man page for detailed requirements.
#[cfg(target_os = "linux")]
pub unsafe fn mremap(
addr: *mut c_void,
old_size: size_t,
Expand Down

0 comments on commit 7a46b52

Please sign in to comment.