diff options
Diffstat (limited to 'src/libcore/path.rs')
| -rw-r--r-- | src/libcore/path.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcore/path.rs b/src/libcore/path.rs index a31be1ab15b..8b5e383ed94 100644 --- a/src/libcore/path.rs +++ b/src/libcore/path.rs @@ -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(); |
