fixed libc compile error
This commit is contained in:
parent
5e84a6a578
commit
74a27a407c
@ -1,12 +1,12 @@
|
||||
[package]
|
||||
name = "crossterm_utils"
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
authors = ["T. Post"]
|
||||
description = "Common logic used by the crossterm crates."
|
||||
repository = "https://github.com/TimonPost/crossterm"
|
||||
documentation = "https://docs.rs/crossterm_utils/"
|
||||
license = "MIT"
|
||||
keywords = ["winapi", "abstractions", "crossterm", "windows", "screen_buffer"]
|
||||
keywords = ["terminal", "abstractions", "crossterm", "windows", "screen_buffer"]
|
||||
exclude = ["target", "Cargo.lock"]
|
||||
readme = "README.md"
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
#[cfg(unix)]
|
||||
extern crate libc;
|
||||
#[cfg(windows)]
|
||||
extern crate crossterm_winapi;
|
||||
#[cfg(windows)]
|
||||
|
@ -1,6 +1,6 @@
|
||||
//! 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};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user