1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-05 07:27:46 +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]
libc = "*"
time = "*"
winapi = "*"
[lib]
path = "lib.rs"

View file

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

View file

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