From cab6d46e58ea6f7535d8e454f0345eccfae183c4 Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Fri, 9 Aug 2013 14:06:03 -0700 Subject: [PATCH] rustpkg: another fix for windows --- src/librustpkg/util.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/librustpkg/util.rs b/src/librustpkg/util.rs index a7e92afd2a4e..3a0954c62d7d 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| {