diff options
author | Laurence Tratt <laurie@tratt.net> | 2015-05-29 16:32:54 +0059 |
---|---|---|
committer | Laurence Tratt <laurie@tratt.net> | 2015-05-29 16:32:54 +0059 |
commit | 30d02b88a033cf0e9bb0fd1adb4d81c5c8dc3437 (patch) | |
tree | 5f3e4d345f796ef9df55f3c4b7f3b262878214e5 /src/sys/termios.rs | |
parent | e2b08fad9c3334e2791aebc28fa1d71d0f76112b (diff) | |
download | nix-30d02b88a033cf0e9bb0fd1adb4d81c5c8dc3437.zip |
Basic OpenBSD support.
Some of the tests are currently unrunnable, but the basic library is at least
buildable.
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 7473eab4..4050e7d5 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 = "freebsd", target_os = "linux"))] + #[cfg(any(target_os = "macos", target_os = "freebsd", target_os = "openbsd", 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(any(target_os = "macos", target_os = "freebsd"))] + #[cfg(any(target_os = "macos", target_os = "freebsd", target_os = "openbsd"))] pub mod consts { use libc::{c_int, c_ulong, c_uchar}; |