libcore: fix build breakage on win32 stat.
This commit is contained in:
parent
ef833d4101
commit
0c8a009dc9
2 changed files with 21 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue