diff options
author | Christian Duerr <chrisduerr@users.noreply.github.com> | 2019-07-22 18:56:08 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-22 18:56:08 +0000 |
commit | a23b372f34c58710678b888addcda2e3b7d45111 (patch) | |
tree | ef5fc1f4caf9d11f267c307ad7a128a1439eddb4 /alacritty_terminal | |
parent | 76dd84bef87f77c67bf5c23ee627163e93786b5d (diff) | |
download | alacritty-a23b372f34c58710678b888addcda2e3b7d45111.tar.gz alacritty-a23b372f34c58710678b888addcda2e3b7d45111.zip |
Fix NetBSD build failure
Fixes #2631.
Diffstat (limited to 'alacritty_terminal')
-rw-r--r-- | alacritty_terminal/Cargo.toml | 2 | ||||
-rw-r--r-- | alacritty_terminal/src/window.rs | 21 |
2 files changed, 4 insertions, 19 deletions
diff --git a/alacritty_terminal/Cargo.toml b/alacritty_terminal/Cargo.toml index dd3f1959..26414aaa 100644 --- a/alacritty_terminal/Cargo.toml +++ b/alacritty_terminal/Cargo.toml @@ -37,7 +37,7 @@ copypasta = { path = "../copypasta" } nix = "0.14.1" signal-hook = { version = "0.1", features = ["mio-support"] } -[target.'cfg(any(target_os = "linux", target_os = "freebsd", target_os="dragonfly", target_os="openbsd"))'.dependencies] +[target.'cfg(not(any(target_os = "macos", windows)))'.dependencies] x11-dl = "2" [target.'cfg(windows)'.dependencies] diff --git a/alacritty_terminal/src/window.rs b/alacritty_terminal/src/window.rs index 360cda87..47828ac8 100644 --- a/alacritty_terminal/src/window.rs +++ b/alacritty_terminal/src/window.rs @@ -337,12 +337,7 @@ impl Window { } } - #[cfg(any( - target_os = "linux", - target_os = "freebsd", - target_os = "dragonfly", - target_os = "openbsd" - ))] + #[cfg(not(any(target_os = "macos", windows)))] pub fn set_urgent(&self, is_urgent: bool) { self.window().set_urgent(is_urgent); } @@ -420,20 +415,10 @@ pub trait OsExtensions { fn run_os_extensions(&self) {} } -#[cfg(not(any( - target_os = "linux", - target_os = "freebsd", - target_os = "dragonfly", - target_os = "openbsd" -)))] +#[cfg(any(target_os = "macos", windows))] impl OsExtensions for Window {} -#[cfg(any( - target_os = "linux", - target_os = "freebsd", - target_os = "dragonfly", - target_os = "openbsd" -))] +#[cfg(not(any(target_os = "macos", windows)))] impl OsExtensions for Window { fn run_os_extensions(&self) { use libc::getpid; |