Skip to content

Commit 62f6f46

Browse files
committed
core: fix windows breakage, r=burningtree.
1 parent 1f1e7e9 commit 62f6f46

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/libcore/os.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ pub fn fill_charp_buf(f: fn(*mut c_char, size_t) -> bool)
8888

8989
#[cfg(windows)]
9090
pub mod win32 {
91+
use libc;
92+
use vec;
93+
use str;
94+
use option;
9195
use libc::types::os::arch::extra::DWORD;
9296

9397
pub fn fill_utf16_buf_and_decode(f: fn(*mut u16, DWORD) -> DWORD)

src/libcore/path.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ mod stat {
219219
#[cfg(target_os = "win32")]
220220
mod stat {
221221
pub mod arch {
222+
use libc;
222223
pub fn default_stat() -> libc::stat {
223224
libc::stat {
224225
st_dev: 0,

0 commit comments

Comments
 (0)