1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
extern crate libc as real_libc; #[macro_use] extern crate bitflags; #[cfg(target_os = "linux")] #[path = "platform/linux.rs"] #[macro_use] mod platform; pub use platform::*; /// A hack to get the macros to work nicely. #[doc(hidden)] pub use real_libc as libc; extern "C" { #[doc(hidden)] pub fn ioctl(fd: libc::c_int, req: libc::c_ulong, ...) -> libc::c_int; } #[cfg(not(target_os = "linux"))] use platform_not_supported;