Update build flags because X11 runs on more than just Linux

This commit is contained in:
Michael Palmos
2019-09-07 13:09:51 +10:00
parent da00ad391a
commit 882b910046
2 changed files with 2 additions and 2 deletions

View File

@@ -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]

View File

@@ -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]