1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-05 15:37:47 +00:00

More import fixes for Windows.

This commit is contained in:
Joseph Crail 2015-12-01 01:27:20 -05:00 committed by Roy Ivy III
parent 3863842fae
commit b8ee12f703
3 changed files with 4 additions and 1 deletions

View file

@ -6,6 +6,7 @@ authors = []
[dependencies] [dependencies]
libc = "*" libc = "*"
time = "*" time = "*"
winapi = "*"
[lib] [lib]
path = "lib.rs" path = "lib.rs"

View file

@ -12,7 +12,8 @@
// be backported to stable (<= 1.1). This will likely be dropped // be backported to stable (<= 1.1). This will likely be dropped
// when the path trait stabilizes. // when the path trait stabilizes.
use ::libc; #[cfg(unix)]
use super::libc;
use std::env; use std::env;
use std::fs; use std::fs;
use std::io::{Error, ErrorKind, Result}; use std::io::{Error, ErrorKind, Result};

View file

@ -1,5 +1,6 @@
extern crate libc; extern crate libc;
extern crate time; extern crate time;
#[cfg(windows)] extern crate winapi;
#[macro_use] #[macro_use]
mod macros; mod macros;