diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2020-10-15 18:51:49 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2020-10-15 18:51:49 +0200 |
| commit | 1c7c591cb8a656b08edd4dacf86323d0db5b8684 (patch) | |
| tree | d8f5cb5b54bc494a1bc1d672f7edbb82c5447ea7 | |
| parent | 1c272b1224fabfa307942fc76eb14b7b7bddd040 (diff) | |
| download | rust-1c7c591cb8a656b08edd4dacf86323d0db5b8684.tar.gz rust-1c7c591cb8a656b08edd4dacf86323d0db5b8684.zip | |
Fix compilation for non-unix systems
| -rw-r--r-- | src/atomic_shim.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/atomic_shim.rs b/src/atomic_shim.rs index 11b5946b6aa..92281fdacc9 100644 --- a/src/atomic_shim.rs +++ b/src/atomic_shim.rs @@ -5,7 +5,7 @@ use crate::prelude::*; -#[cfg(feature = "jit")] +#[cfg(all(feature = "jit", unix))] #[no_mangle] pub static mut __cg_clif_global_atomic_mutex: libc::pthread_mutex_t = libc::PTHREAD_MUTEX_INITIALIZER; |
