Make sure we handle *nix correctly

This commit is contained in:
Daniel Collin 2016-01-03 15:28:00 +01:00
parent 264a630c39
commit 20e1b228cd
3 changed files with 15 additions and 3 deletions

View file

@ -167,7 +167,11 @@ mod key_handler;
use self::os::macos as imp; use self::os::macos as imp;
#[cfg(target_os = "windows")] #[cfg(target_os = "windows")]
use self::os::windows as imp; use self::os::windows as imp;
#[cfg(unix)] #[cfg(any(target_os="linux",
target_os="freebsd",
target_os="dragonfly",
target_os="netbsd",
target_os="openbsd"))]
use self::os::unix as imp; use self::os::unix as imp;
/// ///

View file

@ -2,5 +2,9 @@
pub mod macos; pub mod macos;
#[cfg(target_os = "windows")] #[cfg(target_os = "windows")]
pub mod windows; pub mod windows;
#[cfg(unix)] #[cfg(any(target_os="linux",
target_os="freebsd",
target_os="dragonfly",
target_os="netbsd",
target_os="openbsd"))]
pub mod unix; pub mod unix;

View file

@ -1,4 +1,8 @@
#![cfg(unix)] #![cfg(any(target_os="linux",
target_os="freebsd",
target_os="dragonfly",
target_os="netbsd",
target_os="openbsd"))]
extern crate x11_dl; extern crate x11_dl;