Skip to content

Commit 9b64d71

Browse files
committed
Fix windows breakage.
1 parent ad951b5 commit 9b64d71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libcore/os.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,12 +554,13 @@ pub fn make_dir(p: &Path, mode: c_int) -> bool {
554554

555555
#[cfg(windows)]
556556
fn mkdir(p: &Path, _mode: c_int) -> bool {
557+
use win32::*;
557558
// FIXME: turn mode into something useful? #2623
558559
do as_utf16_p(p.to_str()) |buf| {
559560
libc::CreateDirectoryW(buf, unsafe {
560561
cast::reinterpret_cast(&0)
561562
})
562-
!= (0 as BOOL)
563+
!= (0 as libc::BOOL)
563564
}
564565
}
565566

0 commit comments

Comments
 (0)