about summary refs log tree commit diff
path: root/src/libstd/env.rs
diff options
context:
space:
mode:
authorNikita Baksalyar <nikita.baksalyar@gmail.com>2016-01-21 19:30:22 +0300
committerNikita Baksalyar <nikita.baksalyar@gmail.com>2016-01-31 18:57:26 +0300
commitf189d7a6937c063f9592136a39c836b17c008a93 (patch)
treea31b16fa2af96d112a2e470d7a169b460d961efb /src/libstd/env.rs
parent9041b930585806b948b4cc68933047ffdc96f6f9 (diff)
downloadrust-f189d7a6937c063f9592136a39c836b17c008a93.tar.gz
rust-f189d7a6937c063f9592136a39c836b17c008a93.zip
Add Illumos support
Diffstat (limited to 'src/libstd/env.rs')
-rw-r--r--src/libstd/env.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libstd/env.rs b/src/libstd/env.rs
index db136190082..eaf4de619a7 100644
--- a/src/libstd/env.rs
+++ b/src/libstd/env.rs
@@ -642,6 +642,7 @@ pub mod consts {
     /// - bitrig
     /// - netbsd
     /// - openbsd
+    /// - sunos
     /// - android
     /// - windows
     #[stable(feature = "env", since = "1.0.0")]
@@ -802,6 +803,17 @@ mod os {
     pub const EXE_EXTENSION: &'static str = "";
 }
 
+#[cfg(target_os = "sunos")]
+mod os {
+    pub const FAMILY: &'static str = "unix";
+    pub const OS: &'static str = "sunos";
+    pub const DLL_PREFIX: &'static str = "lib";
+    pub const DLL_SUFFIX: &'static str = ".so";
+    pub const DLL_EXTENSION: &'static str = "so";
+    pub const EXE_SUFFIX: &'static str = "";
+    pub const EXE_EXTENSION: &'static str = "";
+}
+
 #[cfg(target_os = "windows")]
 mod os {
     pub const FAMILY: &'static str = "windows";