Skip to content

Commit cab6d46

Browse files
committed
rustpkg: another fix for windows
1 parent c14e14e commit cab6d46

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustpkg/util.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
// except according to those terms.
1010

1111
use std::{os, result};
12-
use std::c_str::ToCStr;
1312
use rustc::driver::{driver, session};
1413
use rustc::metadata::filesearch;
1514
use extra::getopts::groups::getopts;
@@ -373,7 +372,9 @@ pub fn link_exe(_src: &Path, _dest: &Path) -> bool {
373372
#[cfg(target_os = "freebsd")]
374373
#[cfg(target_os = "macos")]
375374
pub fn link_exe(src: &Path, dest: &Path) -> bool {
375+
use std::c_str::ToCStr;
376376
use std::libc;
377+
377378
unsafe {
378379
do src.to_c_str().with_ref |src_buf| {
379380
do dest.to_c_str().with_ref |dest_buf| {

0 commit comments

Comments
 (0)