Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Do not import libc on windows #848

Merged
merged 2 commits into from
Jul 12, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cranelift-simplejit/src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use cranelift_module::{
Backend, DataContext, DataDescription, Init, Linkage, ModuleNamespace, ModuleResult,
};
use cranelift_native;
#[cfg(not(windows))]
use libc;
use std::collections::HashMap;
use std::ffi::CString;
Expand Down
1 change: 1 addition & 0 deletions cranelift-simplejit/src/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
use errno;

#[cfg(not(feature = "selinux-fix"))]
#[cfg(not(windows))]
mrowqa marked this conversation as resolved.
Show resolved Hide resolved
use libc;

#[cfg(feature = "selinux-fix")]
Expand Down