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]