From 882b9100462a5ee0cf89dcd42891ebd0f709964f Mon Sep 17 00:00:00 2001 From: Michael Palmos Date: Sat, 7 Sep 2019 13:09:51 +1000 Subject: [PATCH] Update build flags because X11 runs on more than just Linux --- Cargo.toml | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 281a4853c..4aade3a4f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,7 +44,7 @@ version = "0.1.3" default_features = false features = ["display_link"] -[target.'cfg(any(target_os = "ios", target_os = "windows", target_os = "linux"))'.dependencies] +[target.'cfg(any(target_os = "ios", target_os = "windows", target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd"))'.dependencies] bitflags = "1" [target.'cfg(target_os = "windows")'.dependencies.winapi] diff --git a/src/lib.rs b/src/lib.rs index ebd999d21..5e5a45cb3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -123,7 +123,7 @@ extern crate serde; #[macro_use] extern crate derivative; #[macro_use] -#[cfg(any(target_os = "ios", target_os = "windows", target_os = "linux"))] +#[cfg(any(target_os = "ios", target_os = "windows", target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd"))] extern crate bitflags; #[cfg(any(target_os = "macos", target_os = "ios"))] #[macro_use]