about summary refs log tree commit diff
path: root/src/libcore/path.rs
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2012-11-21 15:35:47 -0800
committerGraydon Hoare <graydon@mozilla.com>2012-11-21 15:35:47 -0800
commit0c8a009dc993e8bad278bacba425f3daf3edfa96 (patch)
tree69116985f72ebb175acb6df2039f928b7fcb1dbe /src/libcore/path.rs
parentef833d41014481acdfc19bfd50f27f662dba8a2b (diff)
downloadrust-0c8a009dc993e8bad278bacba425f3daf3edfa96.tar.gz
rust-0c8a009dc993e8bad278bacba425f3daf3edfa96.zip
libcore: fix build breakage on win32 stat.
Diffstat (limited to 'src/libcore/path.rs')
-rw-r--r--src/libcore/path.rs3
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();