aboutsummaryrefslogtreecommitdiffstats
path: root/src/platform
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-08-30 14:35:47 +0200
committertomaka <pierre.krieger1708@gmail.com>2015-08-30 14:35:47 +0200
commit9d6d2412c7fc7c26574e91a8dc981eaecaa49542 (patch)
treebd9b70c965bd0edbf2a96c1be7ecc4c440488c87 /src/platform
parentb8b1b80631e1335a7ab747f34e1c67dfa0790a10 (diff)
parentb707959c2c0ae97c2225c2e6dbc07fc754125458 (diff)
downloadglutin-9d6d2412c7fc7c26574e91a8dc981eaecaa49542.tar.gz
glutin-9d6d2412c7fc7c26574e91a8dc981eaecaa49542.zip
Merge pull request #589 from mneumann/dragonfly2
Make it work on DragonFly/FreeBSD
Diffstat (limited to 'src/platform')
-rw-r--r--src/platform/linux/mod.rs2
-rw-r--r--src/platform/mod.rs6
2 files changed, 5 insertions, 3 deletions
diff --git a/src/platform/linux/mod.rs b/src/platform/linux/mod.rs
index fc42f18..3525ce5 100644
--- a/src/platform/linux/mod.rs
+++ b/src/platform/linux/mod.rs
@@ -1,4 +1,4 @@
-#![cfg(target_os = "linux")]
+#![cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd"))]
use Api;
use BuilderAttribs;
diff --git a/src/platform/mod.rs b/src/platform/mod.rs
index c4b2265..4855765 100644
--- a/src/platform/mod.rs
+++ b/src/platform/mod.rs
@@ -3,7 +3,7 @@ pub use self::platform::*;
#[cfg(target_os = "windows")]
#[path="windows/mod.rs"]
mod platform;
-#[cfg(target_os = "linux")]
+#[cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd"))]
#[path="linux/mod.rs"]
mod platform;
#[cfg(target_os = "macos")]
@@ -16,5 +16,7 @@ mod platform;
#[path="ios/mod.rs"]
mod platform;
-#[cfg(all(not(target_os = "ios"), not(target_os = "windows"), not(target_os = "linux"), not(target_os = "macos"), not(target_os = "android")))]
+#[cfg(all(not(target_os = "ios"), not(target_os = "windows"), not(target_os = "linux"),
+ not(target_os = "macos"), not(target_os = "android"), not(target_os = "dragonfly"),
+ not(target_os = "freebsd")))]
use this_platform_is_not_supported;