Skip to content

Commit

Permalink
Switched bsd speed_t def. to libc::speed_t
Browse files Browse the repository at this point in the history
  • Loading branch information
berkowski authored and Susurrus committed Apr 9, 2017
1 parent 22c37c2 commit a859ee3
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions src/sys/termios.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,22 +96,14 @@ mod ffi {

#[cfg(any(target_os = "macos", target_os = "freebsd", target_os = "dragonfly", target_os = "openbsd", target_os = "netbsd"))]
pub mod consts {
#[cfg(not(any(target_os = "dragonfly", target_os = "netbsd")))]
use libc::{c_int, c_ulong, c_uchar};
#[cfg(any(target_os = "dragonfly", target_os = "netbsd"))]
use libc::{c_int, c_uint, c_uchar};

#[cfg(not(any(target_os = "dragonfly", target_os = "netbsd")))]
pub type tcflag_t = c_ulong;
#[cfg(any(target_os = "dragonfly", target_os = "netbsd"))]
pub type tcflag_t = c_uint;
use libc;

pub type cc_t = c_uchar;
use libc::{c_int, c_uint, c_ulong, c_uchar};

#[cfg(not(any(target_os = "dragonfly", target_os = "netbsd")))]
pub type speed_t = c_ulong;
#[cfg(any(target_os = "dragonfly", target_os = "netbsd"))]
pub type speed_t = c_uint;
pub type tcflag_t = libc::tcflag_t;
pub type cc_t = libc::cc_t;
pub type speed_t = libc::speed_t;

#[repr(C)]
#[derive(Clone, Copy)]
Expand Down

0 comments on commit a859ee3

Please sign in to comment.