mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-04 23:17:46 +00:00
More import fixes for Windows.
This commit is contained in:
parent
3863842fae
commit
b8ee12f703
3 changed files with 4 additions and 1 deletions
|
@ -6,6 +6,7 @@ authors = []
|
|||
[dependencies]
|
||||
libc = "*"
|
||||
time = "*"
|
||||
winapi = "*"
|
||||
|
||||
[lib]
|
||||
path = "lib.rs"
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
extern crate libc;
|
||||
extern crate time;
|
||||
#[cfg(windows)] extern crate winapi;
|
||||
|
||||
#[macro_use]
|
||||
mod macros;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue