Skip to content

Commit f97c1b4

Browse files
committed
host_env/mmap: gate EOVERFLOW re-export on cfg(windows)
Its only consumer is the cfg(windows) named-mapping overflow check in stdlib::mmap; the re-export was gated cfg(unix), so it was configured out on Windows and the reference failed to resolve. Assisted-by: Claude
1 parent d7df262 commit f97c1b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎crates/host_env/src/mmap.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pub use libc::MAP_STACK;
5959
#[cfg(target_os = "freebsd")]
6060
pub use libc::{MADV_AUTOSYNC, MADV_CORE, MADV_NOCORE, MADV_NOSYNC, MADV_PROTECT};
6161

62-
#[cfg(unix)]
62+
#[cfg(windows)]
6363
pub use libc::EOVERFLOW;
6464

6565
#[cfg(windows)]

0 commit comments

Comments
 (0)