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

Commit

Permalink
Do not import libc on windows (#848)
Browse files Browse the repository at this point in the history
* Do not import libc on windows
  • Loading branch information
mrowqa authored and sunfishcode committed Jul 12, 2019
1 parent 8cb74ad commit 327e222
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion cranelift-simplejit/src/memory.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#[cfg(not(feature = "selinux-fix"))]
use errno;

#[cfg(not(feature = "selinux-fix"))]
#[cfg(not(any(feature = "selinux-fix", windows)))]
use libc;

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

0 comments on commit 327e222

Please sign in to comment.