summaryrefslogtreecommitdiff
path: root/src/sys/termios.rs
diff options
context:
space:
mode:
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};