about summary refs log tree commit diff
diff options
context:
space:
mode:
authorErick Tryzelaar <erick.tryzelaar@gmail.com>2013-08-09 14:06:03 -0700
committerErick Tryzelaar <erick.tryzelaar@gmail.com>2013-08-09 14:06:03 -0700
commitcab6d46e58ea6f7535d8e454f0345eccfae183c4 (patch)
tree6527bcb2ef066371da88c10c2d688d06a1e899b1
parentc14e14e63aeefa5c94648dd921bd99a9dadeb060 (diff)
downloadrust-cab6d46e58ea6f7535d8e454f0345eccfae183c4.tar.gz
rust-cab6d46e58ea6f7535d8e454f0345eccfae183c4.zip
rustpkg: another fix for windows
-rw-r--r--src/librustpkg/util.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustpkg/util.rs b/src/librustpkg/util.rs
index a7e92afd2a4..3a0954c62d7 100644
--- a/src/librustpkg/util.rs
+++ b/src/librustpkg/util.rs
@@ -9,7 +9,6 @@
 // except according to those terms.
 
 use std::{os, result};
-use std::c_str::ToCStr;
 use rustc::driver::{driver, session};
 use rustc::metadata::filesearch;
 use extra::getopts::groups::getopts;
@@ -373,7 +372,9 @@ pub fn link_exe(_src: &Path, _dest: &Path) -> bool {
 #[cfg(target_os = "freebsd")]
 #[cfg(target_os = "macos")]
 pub fn link_exe(src: &Path, dest: &Path) -> bool {
+    use std::c_str::ToCStr;
     use std::libc;
+
     unsafe {
         do src.to_c_str().with_ref |src_buf| {
             do dest.to_c_str().with_ref |dest_buf| {