1
Fork 0

libcore: fix build breakage on win32 stat.

This commit is contained in:
Graydon Hoare 2012-11-21 15:35:47 -08:00
parent ef833d4101
commit 0c8a009dc9
2 changed files with 21 additions and 3 deletions

View file

@ -190,7 +190,7 @@ mod stat {
}
}
#[cfg(target_os = "windows")]
#[cfg(target_os = "win32")]
mod stat {
pub mod arch {
pub fn default_stat() -> libc::stat {
@ -222,6 +222,7 @@ impl Path {
}
}
#[cfg(unix)]
fn lstat(&self) -> Option<libc::stat> {
do str::as_c_str(self.to_str()) |buf| {
let mut st = stat::arch::default_stat();