diff options
author | Andrew J. Stone <andrew.j.stone.1@gmail.com> | 2015-05-07 23:27:37 -0400 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2015-05-11 22:06:19 -0700 |
commit | 1a2d6d51f4f585e975eb3fb420904427d1f706f4 (patch) | |
tree | bdff15cefec1fe003b7b78e0233f208611757a0e /src/sys/termios.rs | |
parent | ecbbf1a8176130ca845b23c3e9dfe37d45da3c13 (diff) | |
download | nix-1a2d6d51f4f585e975eb3fb420904427d1f706f4.zip |
Get the library to build on freebsd
`cargo build` works.
Diffstat (limited to 'src/sys/termios.rs')
-rw-r--r-- | src/sys/termios.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sys/termios.rs b/src/sys/termios.rs index 57612f0b..0c636e77 100644 --- a/src/sys/termios.rs +++ b/src/sys/termios.rs @@ -17,7 +17,7 @@ mod ffi { // `Termios` contains bitflags which are not considered // `foreign-function-safe` by the compiler. #[allow(improper_ctypes)] - #[cfg(any(target_os = "macos", target_os = "linux"))] + #[cfg(any(target_os = "macos", target_os = "freebsd", target_os = "linux"))] extern { pub fn cfgetispeed(termios: *const Termios) -> speed_t; pub fn cfgetospeed(termios: *const Termios) -> speed_t; @@ -89,7 +89,7 @@ mod ffi { pub use self::android::*; - #[cfg(target_os = "macos")] + #[cfg(any(target_os = "macos", target_os = "freebsd"))] pub mod consts { use libc::{c_int, c_ulong, c_uchar}; |