Skip to content

Commit 7a46b52

Browse files
committed
Only enable mremap wrapper on Linux, since it's Linux-specific
1 parent 09a291b commit 7a46b52

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sys/mman.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ pub unsafe fn mmap(addr: *mut c_void, length: size_t, prot: ProtFlags, flags: Ma
320320
/// # Safety
321321
///
322322
/// See the `mremap(2)` man page for detailed requirements.
323+
#[cfg(target_os = "linux")]
323324
pub unsafe fn mremap(
324325
addr: *mut c_void,
325326
old_size: size_t,

0 commit comments

Comments
 (0)