From 463f03826fb2e5459f8ce4e438f10b0b553fc62d Mon Sep 17 00:00:00 2001 From: Adenilson Cavalcanti Date: Tue, 3 Mar 2015 14:39:02 -0800 Subject: [PATCH] Cleanup compilation warning in OSX (should still work on Linux). --- components/util/memory.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/components/util/memory.rs b/components/util/memory.rs index c309cdbb4ed..6327a6e01f9 100644 --- a/components/util/memory.rs +++ b/components/util/memory.rs @@ -7,6 +7,7 @@ use libc::{c_char,c_int,c_void,size_t}; use std::borrow::ToOwned; use std::ffi::CString; +#[cfg(target_os = "linux")] use std::iter::AdditiveIterator; use std::old_io::timer::sleep; #[cfg(target_os="linux")]