fixed libc compile error

This commit is contained in:
TimonPost 2019-04-11 17:02:00 +02:00
parent 5e84a6a578
commit 74a27a407c
3 changed files with 5 additions and 3 deletions

View File

@ -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"

View File

@ -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)]

View File

@ -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};