From 30d02b88a033cf0e9bb0fd1adb4d81c5c8dc3437 Mon Sep 17 00:00:00 2001 From: Laurence Tratt Date: Fri, 29 May 2015 16:32:54 +0059 Subject: Basic OpenBSD support. Some of the tests are currently unrunnable, but the basic library is at least buildable. --- src/sys/termios.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sys/termios.rs') 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}; -- cgit v1.2.3