fixed libc compile error
This commit is contained in:
parent
5e84a6a578
commit
74a27a407c
@ -1,12 +1,12 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "crossterm_utils"
|
name = "crossterm_utils"
|
||||||
version = "0.2.0"
|
version = "0.2.1"
|
||||||
authors = ["T. Post"]
|
authors = ["T. Post"]
|
||||||
description = "Common logic used by the crossterm crates."
|
description = "Common logic used by the crossterm crates."
|
||||||
repository = "https://github.com/TimonPost/crossterm"
|
repository = "https://github.com/TimonPost/crossterm"
|
||||||
documentation = "https://docs.rs/crossterm_utils/"
|
documentation = "https://docs.rs/crossterm_utils/"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
keywords = ["winapi", "abstractions", "crossterm", "windows", "screen_buffer"]
|
keywords = ["terminal", "abstractions", "crossterm", "windows", "screen_buffer"]
|
||||||
exclude = ["target", "Cargo.lock"]
|
exclude = ["target", "Cargo.lock"]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#[cfg(unix)]
|
||||||
|
extern crate libc;
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
extern crate crossterm_winapi;
|
extern crate crossterm_winapi;
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
//! This module contains all `unix` specific terminal related logic.
|
//! This module contains all `unix` specific terminal related logic.
|
||||||
|
|
||||||
pub use libc::{self, c_int, termios as Termios};
|
pub use libc::{c_int, termios as Termios};
|
||||||
|
|
||||||
use std::{io, mem};
|
use std::{io, mem};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user