summaryrefslogtreecommitdiff
path: root/src/sys/termios.rs
diff options
context:
space:
mode:
authorLaurence Tratt <laurie@tratt.net>2015-05-29 16:32:54 +0059
committerLaurence Tratt <laurie@tratt.net>2015-05-29 16:32:54 +0059
commit30d02b88a033cf0e9bb0fd1adb4d81c5c8dc3437 (patch)
tree5f3e4d345f796ef9df55f3c4b7f3b262878214e5 /src/sys/termios.rs
parente2b08fad9c3334e2791aebc28fa1d71d0f76112b (diff)
downloadnix-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.rs4
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};